diff options
| author | Julian Andres Klode <jak@debian.org> | 2014-01-26 00:11:06 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2014-01-26 00:11:46 +0100 |
| commit | 8f2f04f080334b21b455c6e00199b4c095e1181d (patch) | |
| tree | fc7783fb4b95af93ec299458dcd6b1d09f27fba5 /doc/source | |
| parent | 9b8ea91691dd2b7d21da933583e94c2482d3d532 (diff) | |
| download | python-apt-8f2f04f080334b21b455c6e00199b4c095e1181d.tar.gz | |
doc/source/conf.py: Python 3 support
Correctly decode the process output in Python 3, so everything
works if sphinx is run using python3.
Diffstat (limited to 'doc/source')
| -rw-r--r-- | doc/source/conf.py | 2 |
1 files changed, 2 insertions, 0 deletions
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]: |
