diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-01-15 18:59:20 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-01-15 18:59:20 +0000 |
commit | c17f6f525ff311e5580a56e729ceb501491957ae (patch) | |
tree | 8b65f6c863f5974c45fdbc0ad86022f0b3f6c2eb /doc | |
parent | 606732dbb1ab88cb6036368af7d8cabe926c0e75 (diff) | |
parent | 686504e363895a425f4d58389e276ce30349b01f (diff) | |
download | taskflow-c17f6f525ff311e5580a56e729ceb501491957ae.tar.gz |
Merge "Replace deprecated library function os.popen() with subprocess"
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/conf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 9dec3b6..205a5e5 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -2,6 +2,7 @@ import datetime import os +import subprocess import sys sys.path.insert(0, os.path.abspath('../..')) @@ -70,8 +71,10 @@ html_static_path = ['static'] # Output file base name for HTML help builder. htmlhelp_basename = '%sdoc' % project -git_cmd = "git log --pretty=format:'%ad, commit %h' --date=local -n1" -html_last_updated_fmt = os.popen(git_cmd).read() +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] # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass |