summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/0003-give-lxml-etree-BytesIO-in-Python-3.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/patches/0003-give-lxml-etree-BytesIO-in-Python-3.patch b/debian/patches/0003-give-lxml-etree-BytesIO-in-Python-3.patch
index 32746fd..aac136f 100644
--- a/debian/patches/0003-give-lxml-etree-BytesIO-in-Python-3.patch
+++ b/debian/patches/0003-give-lxml-etree-BytesIO-in-Python-3.patch
@@ -1,4 +1,4 @@
-From 351c51b882bf00d1db03de5a2419372e2e31d6cf Mon Sep 17 00:00:00 2001
+From 591e67b26a2d694d5aae2d77985eab4d8daf2d9e Mon Sep 17 00:00:00 2001
From: Carl Suster <carl@contraflo.ws>
Date: Wed, 11 Jan 2017 22:34:34 +1100
Subject: give lxml etree BytesIO in Python 3
@@ -11,7 +11,7 @@ switches to BytesIO in Python 3, decoding the XML data as UTF-8.
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/pynzb/lxml_nzb.py b/pynzb/lxml_nzb.py
-index 790671d..9d76c4a 100644
+index 790671d..e74ba34 100644
--- a/pynzb/lxml_nzb.py
+++ b/pynzb/lxml_nzb.py
@@ -6,11 +6,17 @@ except ImportError:
@@ -30,7 +30,7 @@ index 790671d..9d76c4a 100644
+ from StringIO import StringIO
+ def as_io(xml): return StringIO(xml)
+else:
-+ from BytesIO import BytesIO
++ from io import BytesIO
+ def as_io(xml): return BytesIO(bytes(xml, 'utf-8'))
class LXMLNZBParser(BaseETreeNZBParser):