Package: django-tables / 1.14.2-1~bpo9+1

0002-Fix-python2-only-code.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Brian May <bam@debian.org>
Date: Tue, 31 Oct 2017 08:25:49 +1100
Subject: Fix python2 only code

---
 docs/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/conf.py b/docs/conf.py
index 150e362..d656c39 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,7 +14,7 @@ sys.path.insert(0, os.path.abspath('../'))
 
 project = 'django-tables2'
 with open('../django_tables2/__init__.py', 'rb') as f:
-    release = re.search('__version__ = \'(.+?)\'', f.read()).group(1)
+    release = re.search('__version__ = \'(.+?)\'', f.read().decode('UTF8')).group(1)
 version = release.rpartition('.')[0]