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: Ife5b7762c8ebce005f2a3a3b59f8c01eca48c55d
This commit is contained in:
rajat29 2017-04-19 13:31:11 +05:30
parent ec7ee490a6
commit 6993d9a35e

View File

@ -180,8 +180,7 @@ else:
# using the given strftime format. # using the given strftime format.
git_cmd = [ git_cmd = [
"git", "log", "--pretty=format:'%ad, commit %h'", "--date=local", "-n1"] "git", "log", "--pretty=format:'%ad, commit %h'", "--date=local", "-n1"]
html_last_updated_fmt = subprocess.Popen( html_last_updated_fmt = subprocess.check_output(git_cmd).decode("utf-8")
git_cmd, stdout=subprocess.PIPE).communicate()[0]
# If true, SmartyPants will be used to convert quotes and dashes to # If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities. # typographically correct entities.