diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-06-08 12:59:36 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-06-08 12:59:36 +0000 |
commit | 0c7694f3457c6a5e3c11064b8daefeca051c19ee (patch) | |
tree | 55e61420fcbe30c0064678a32e69edaa43cc8876 | |
parent | db7c539ace993d4fdd4cee97052fc97d5c34c9f7 (diff) | |
parent | 48da28bde5631105584187796dba2a5fdf963cc1 (diff) | |
download | python-saharaclient-0c7694f3457c6a5e3c11064b8daefeca051c19ee.tar.gz |
Merge "Fix html_last_updated_fmt for Python3"
-rw-r--r-- | doc/source/conf.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 49d9fab..56f4591 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -150,8 +150,7 @@ html_static_path = ['_static'] 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".') |