summaryrefslogtreecommitdiff
path: root/api-ref
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2020-04-03 10:53:34 +0200
committerAndreas Jaeger <aj@suse.com>2020-04-03 21:21:07 +0200
commit96b56519bf5756022d495aedc0033cd44e0e3267 (patch)
tree243a21209a65fafb7e3402f35281b6bf049e7a18 /api-ref
parentb4b0ebd4aa0a710af288a69ae787e10420fdeb1a (diff)
downloadswift-96b56519bf5756022d495aedc0033cd44e0e3267.tar.gz
Update hacking for Python3
The repo is Python using both Python 2 and 3 now, so update hacking to version 2.0 which supports Python 2 and 3. Note that latest hacking release 3.0 only supports version 3. Fix problems found. Remove hacking and friends from lower-constraints, they are not needed for installation. Change-Id: I9bd913ee1b32ba1566c420973723296766d1812f
Diffstat (limited to 'api-ref')
-rw-r--r--api-ref/source/conf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py
index de1197b48..cb2f07428 100644
--- a/api-ref/source/conf.py
+++ b/api-ref/source/conf.py
@@ -150,7 +150,7 @@ pygments_style = 'sphinx'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
-#html_static_path = ['_static']
+# html_static_path = ['_static']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
@@ -159,8 +159,8 @@ if 'SOURCE_DATE_EPOCH' in os.environ:
now = float(os.environ.get('SOURCE_DATE_EPOCH'))
html_last_updated_fmt = datetime.datetime.utcfromtimestamp(now).isoformat()
else:
- git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
- "-n1"]
+ git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'",
+ "--date=local", "-n1"]
try:
html_last_updated_fmt = subprocess.Popen(
git_cmd, stdout=subprocess.PIPE).communicate()[0]