From 8f2f04f080334b21b455c6e00199b4c095e1181d Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 26 Jan 2014 00:11:06 +0100 Subject: doc/source/conf.py: Python 3 support Correctly decode the process output in Python 3, so everything works if sphinx is run using python3. --- doc/source/conf.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/source') diff --git a/doc/source/conf.py b/doc/source/conf.py index 7a565e16..41dda03c 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -75,6 +75,8 @@ except KeyError: p2 = Popen(["sed", "-n", 's/^Version: //p'], stdin=p1.stdout, stdout=PIPE) release = p2.communicate()[0] +if sys.version_info.major >= 3: + release = release.decode("utf-8") # Handle the alpha release scheme release_raw = "0" for c in release.split("~")[0].split(".")[2]: -- cgit v1.2.3