Merge "Trivial: clean-up doc/source/conf.py"

This commit is contained in:
Zuul 2018-02-27 11:09:17 +00:00 committed by Gerrit Code Review
commit 4158830eaf
1 changed files with 1 additions and 2 deletions

View File

@ -133,8 +133,7 @@ html_static_path = ['_static']
# 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].decode('utf-8')
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.