File tree 2 files changed +7
-3
lines changed 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ nickname of "the devguide" by the Python core developers.
21
21
22
22
The official home of this guide is https://devguide.python.org.
23
23
24
- Compilation
24
+ Render HTML
25
25
-----------
26
26
27
- For the compilation of the devguide, Python 3.11+ is needed ::
27
+ To render the devguide to HTML under `` _build/html ``, run ::
28
28
29
29
make html
Original file line number Diff line number Diff line change 5
5
import csv
6
6
import datetime as dt
7
7
import json
8
+ import sys
8
9
9
10
import jinja2
10
11
@@ -44,7 +45,10 @@ def __init__(self) -> None:
44
45
45
46
def write_csv (self ) -> None :
46
47
"""Output CSV files."""
47
- now_str = str (dt .datetime .now (dt .UTC ))
48
+ if sys .version_info >= (3 , 11 ):
49
+ now_str = str (dt .datetime .now (dt .UTC ))
50
+ else :
51
+ now_str = str (dt .datetime .utcnow ())
48
52
49
53
versions_by_category = {"branches" : {}, "end-of-life" : {}}
50
54
headers = None
You can’t perform that action at this time.
0 commit comments