summaryrefslogtreecommitdiff
path: root/doc/source/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/conf.py')
-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 d651ec8..19f6e9d 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -212,8 +212,7 @@ html_static_path = ['_static']
212git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local", 212git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local",
213 "-n1"] 213 "-n1"]
214try: 214try:
215 html_last_updated_fmt = subprocess.Popen( 215 html_last_updated_fmt = subprocess.check_output(git_cmd).decode('utf-8')
216 git_cmd, stdout=subprocess.PIPE).communicate()[0]
217except Exception: 216except Exception:
218 warnings.warn('Cannot get last updated time from git repository. ' 217 warnings.warn('Cannot get last updated time from git repository. '
219 'Not setting "html_last_updated_fmt".') 218 'Not setting "html_last_updated_fmt".')