diff options
author | M V P Nitesh <m.nitesh@nectechnologies.in> | 2017-04-17 18:12:01 +0530 |
---|---|---|
committer | M V P Nitesh <m.nitesh@nectechnologies.in> | 2017-04-17 18:12:24 +0530 |
commit | 776241e2fa7066eb451534fe7a34c403c69fca1c (patch) | |
tree | 87670f196b43f192cb7e2884003e6bb299d25c5b /api-ref | |
parent | 3c06d0a3493547ff65aeb298e26b4677952e969d (diff) | |
download | heat-776241e2fa7066eb451534fe7a34c403c69fca1c.tar.gz |
Fix doc generation for Python3
Fix the Sphinx html_last_updated_fmt for Python3.
The html_last_updated_fmt option is interpeted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.
Change-Id: I9acc4200751e63fa29be738cfa00c4637efd8287
Diffstat (limited to 'api-ref')
-rw-r--r-- | api-ref/source/conf.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index 34bdfceb8..a0acf4f18 100644 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -163,8 +163,7 @@ pygments_style = 'sphinx' 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] + html_last_updated_fmt = subprocess.check_output(git_cmd).decode('utf-8') except Exception: warnings.warn('Cannot get last updated time from git repository. ' 'Not setting "html_last_updated_fmt".') |