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: If22500e42b43f92c44cc2742d946b04a9d6c982f
This commit is contained in:
M V P Nitesh 2017-04-17 17:26:39 +05:30
parent 4eec4bc7c4
commit 63475f6f63
1 changed files with 1 additions and 2 deletions

View File

@ -138,8 +138,7 @@ html_title = 'Murano Agent'
#html_last_updated_fmt = '%b %d, %Y'
git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
"-n1"]
html_last_updated_fmt = subprocess.Popen(
git_cmd, stdout=subprocess.PIPE).communicate()[0]
html_last_updated_fmt = subprocess.check_output(git_cmd)
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.