From 2f8873f50ae1f48a439a5622eeb4321ce870da2a Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sun, 5 May 2019 18:05:56 -0400 Subject: [PATCH] docs/conf.py: add py2/py3-tolerance --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index c16d2b7..8bb08de 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -64,6 +64,8 @@ def _get_versions(): parent = os.path.dirname(here) v = subprocess.check_output([sys.executable, "setup.py", "--version"], cwd=parent) + if sys.version_info[0] >= 3: + v = v.decode() short = ".".join(v.split(".")[:2]) long = v return short, long