From a875b36dc007e91075ec08c18128ea5fa050da6f Mon Sep 17 00:00:00 2001 From: Vu Cong Tuan Date: Fri, 16 Jun 2017 21:34:10 +0700 Subject: [PATCH] Fix html_last_updated_fmt for Python3 html_last_updated_fmt option is interpreted as a byte string in python3, causing Sphinx build to break. This patch makes it utf-8 string. Change-Id: I0a164ea268a4069a7d09c1058008cb97bf9d1275 --- doc/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index d3c0a57b9..56ecfadf6 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -90,7 +90,7 @@ if not on_rtd: git_cmd = ["git", "log", "--pretty=format:'%ad, commit %h'", "--date=local", "-n1"] try: - html_last_updated_fmt = subprocess.check_output(git_cmd) + html_last_updated_fmt = subprocess.check_output(git_cmd).decode('utf-8') except OSError: warnings.warn('Cannot get last updated time from git repository. ' 'Not setting "html_last_updated_fmt".')