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

This patch make more concise python construct
in conf.py.

Change-Id: I54b90c1dee42a566447b2a95034f154072ef698d
This commit is contained in:
Nguyen Hung Phuong 2018-02-13 16:57:42 +07:00
parent f28e3cb799
commit 16a00f5e30
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.