Fix html_last_updated_fmt for Python 3
The previous version returned a byte string, which caused errors on Python 3. I borrowed the fix from [1]. Change-Id: If89a3808271756925708e5f48f4a9726b5e25aec 1: https://git.openstack.org/cgit/openstack/cinder/commit/?id=9dc4c8704eef2e48fbae992db094be7ac91f8c6c
This commit is contained in:
parent
9f129ffb1c
commit
a9347cb369
@ -133,8 +133,7 @@ html_theme = 'nature'
|
||||
# using the given strftime format.
|
||||
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')
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
|
Loading…
x
Reference in New Issue
Block a user