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: I006b9cfef15a9e04c1e326d78dd30d2f5ad647c7 Closes-Bug:#1693670
This commit is contained in:
parent
d824f4530d
commit
fe160da765
@ -63,8 +63,7 @@ htmlhelp_basename = '%sdoc' % project
|
||||
|
||||
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).decode('utf-8')
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title, author, documentclass
|
||||
|
Loading…
x
Reference in New Issue
Block a user