[Python-modules-commits] r30466 - in packages/feedparser/trunk/debian (3 files)

emillon-guest at users.alioth.debian.org emillon-guest at users.alioth.debian.org
Tue Sep 2 16:47:38 UTC 2014


    Date: Tuesday, September 2, 2014 @ 16:47:37
  Author: emillon-guest
Revision: 30466

feedparser: fix http auth with python3

Added:
  packages/feedparser/trunk/debian/patches/python3-auth.patch
Modified:
  packages/feedparser/trunk/debian/changelog
  packages/feedparser/trunk/debian/patches/series

Modified: packages/feedparser/trunk/debian/changelog
===================================================================
--- packages/feedparser/trunk/debian/changelog	2014-09-02 16:17:12 UTC (rev 30465)
+++ packages/feedparser/trunk/debian/changelog	2014-09-02 16:47:37 UTC (rev 30466)
@@ -1,3 +1,9 @@
+feedparser (5.1.3-3) UNRELEASED; urgency=medium
+
+  * Fix HTTP auth in python 3 (Closes: #760078)
+
+ -- Etienne Millon <me at emillon.org>  Tue, 02 Sep 2014 10:59:53 +0200
+
 feedparser (5.1.3-2) unstable; urgency=medium
 
   * Fix status reported after a redirect (Closes: #738102)

Added: packages/feedparser/trunk/debian/patches/python3-auth.patch
===================================================================
--- packages/feedparser/trunk/debian/patches/python3-auth.patch	                        (rev 0)
+++ packages/feedparser/trunk/debian/patches/python3-auth.patch	2014-09-02 16:47:37 UTC (rev 30466)
@@ -0,0 +1,15 @@
+Subject: Fix HTTP auth in Python 3
+From: Etienne Millon <me at emillon.org>
+Bug-Debian: http://bugs.debian.org/760078
+
+--- a/feedparser/feedparser.py
++++ b/feedparser/feedparser.py
+@@ -2999,7 +2999,7 @@
+                 user_passwd, realhost = urllib.splituser(realhost)
+                 if user_passwd:
+                     url_file_stream_or_string = '%s://%s%s' % (urltype, realhost, rest)
+-                    auth = base64.standard_b64encode(user_passwd).strip()
++                    auth = unicode(base64.standard_b64encode(bytes(user_passwd)).strip())
+ 
+         # iri support
+         if isinstance(url_file_stream_or_string, unicode):

Modified: packages/feedparser/trunk/debian/patches/series
===================================================================
--- packages/feedparser/trunk/debian/patches/series	2014-09-02 16:17:12 UTC (rev 30465)
+++ packages/feedparser/trunk/debian/patches/series	2014-09-02 16:47:37 UTC (rev 30466)
@@ -1,3 +1,4 @@
 sgmllib3.patch
 chardet.diff
 redirect-status.patch
+python3-auth.patch




More information about the Python-modules-commits mailing list