summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-12 02:57:10 +0000
committerGerrit Code Review <review@openstack.org>2017-06-12 02:57:10 +0000
commit3068385273636391b3ea050a094fcd473c3ba064 (patch)
treebe75fe293b620d3b66ad66017a744b5e027552a1
parent0e9cfc947399178e73e13f2f417c83ec374e080b (diff)
parentd565cf1a0b61e930bcbeb06cfdc07edfabf28676 (diff)
downloadtaskflow-3068385273636391b3ea050a094fcd473c3ba064.tar.gz
Merge "Fix html_last_updated_fmt for Python3"
-rw-r--r--doc/source/conf.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index c4e8864..98f84fb 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -75,8 +75,7 @@ htmlhelp_basename = '%sdoc' % project
git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
"-n1"]
try:
- 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')
except Exception:
warnings.warn('Cannot get last updated time from git repository. '
'Not setting "html_last_updated_fmt".')