Browse Source

Merge "Fix html_last_updated_fmt for Python3"

Jenkins 1 year ago
parent
commit
0be140389b
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      doc/source/conf.py

+ 1
- 2
doc/source/conf.py View File

@@ -154,8 +154,7 @@ modindex_common_prefix = ['keystoneauth1.']
154 154
 git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
155 155
            "-n1"]
156 156
 try:
157
-    html_last_updated_fmt = subprocess.Popen(
158
-        git_cmd, stdout=subprocess.PIPE).communicate()[0]
157
+    html_last_updated_fmt = subprocess.check_output(git_cmd).decode('utf-8')
159 158
 except:
160 159
     warnings.warn('Cannot get last updated time from git repository. '
161 160
                   'Not setting "html_last_updated_fmt".')

Loading…
Cancel
Save