File: fix-doc-generation.patch

package info (click to toggle)
python-tooz 1.62.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 720 kB
  • sloc: python: 5,357; sh: 154; makefile: 27
file content (13 lines) | stat: -rw-r--r-- 575 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 2d26f1f..f718ee4 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -63,7 +63,7 @@ copyright = u'%s, OpenStack Foundation' % datetime.date.today().year
 #
 # The short X.Y version.
 version = subprocess.Popen(['sh', '-c', 'cd ../..; python setup.py --version'],
-                           stdout=subprocess.PIPE).stdout.read()
+                           stdout=subprocess.PIPE).stdout.read().decode('utf-8')
 version = version.strip()
 # The full version, including alpha/beta/rc tags.
 release = version