[Python-modules-commits] [django-tables] 07/07: Fix python2 only code
Brian May
bam at debian.org
Mon Oct 30 21:30:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
bam pushed a commit to branch debian/master
in repository django-tables.
commit 96b55e295064b25776df0462f517b6ebf84bdaa9
Author: Brian May <bam at debian.org>
Date: Tue Oct 31 08:26:27 2017 +1100
Fix python2 only code
---
debian/patches/0002-Fix-python2-only-code.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 22 insertions(+)
diff --git a/debian/patches/0002-Fix-python2-only-code.patch b/debian/patches/0002-Fix-python2-only-code.patch
new file mode 100644
index 0000000..69de028
--- /dev/null
+++ b/debian/patches/0002-Fix-python2-only-code.patch
@@ -0,0 +1,21 @@
+From: Brian May <bam at 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]
+
+
diff --git a/debian/patches/series b/debian/patches/series
index d891337..f42df57 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
local_inventory
+0002-Fix-python2-only-code.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-tables.git
More information about the Python-modules-commits
mailing list