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

emillon-guest at users.alioth.debian.org emillon-guest at users.alioth.debian.org
Sat Feb 8 19:08:45 UTC 2014


    Date: Saturday, February 8, 2014 @ 19:08:44
  Author: emillon-guest
Revision: 27566

feedparser: fix for #738102

Added:
  packages/feedparser/trunk/debian/patches/redirect-status.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-02-08 18:31:24 UTC (rev 27565)
+++ packages/feedparser/trunk/debian/changelog	2014-02-08 19:08:44 UTC (rev 27566)
@@ -1,3 +1,9 @@
+feedparser (5.1.3-2) UNRELEASED; urgency=medium
+
+  * Fix status reported after a redirect (Closes: #738102)
+
+ -- Etienne Millon <me at emillon.org>  Sat, 08 Feb 2014 19:32:12 +0100
+
 feedparser (5.1.3-1) unstable; urgency=low
 
   * New upstream release (Closes: #721768).

Added: packages/feedparser/trunk/debian/patches/redirect-status.patch
===================================================================
--- packages/feedparser/trunk/debian/patches/redirect-status.patch	                        (rev 0)
+++ packages/feedparser/trunk/debian/patches/redirect-status.patch	2014-02-08 19:08:44 UTC (rev 27566)
@@ -0,0 +1,27 @@
+Subject: Fix status reported for redirections
+From: jikamens at gmail.com
+Bug: https://code.google.com/p/feedparser/issues/detail?id=390
+Bug-Debian: http://bugs.debian.org/738102
+Reviewed-by: Etienne Millon <me at emillon.org>
+
+--- a/feedparser/feedparser.py
++++ b/feedparser/feedparser.py
+@@ -3971,6 +3971,7 @@
+ 
+     # Stop processing if the server sent HTTP 304 Not Modified.
+     if getattr(f, 'code', 0) == 304:
++        result['status'] = 304
+         result['version'] = u''
+         result['debug_message'] = 'The feed has not changed since you last checked, ' + \
+             'so the server sent no data.  This is a feature, not a bug!'
+--- a/feedparser/feedparsertest.py
++++ b/feedparser/feedparsertest.py
+@@ -523,7 +523,7 @@
+         u = 'http://localhost:8097/tests/http/http_redirect_to_304.xml'
+         f = feedparser.parse(u)
+         self.assertTrue(f.bozo == 0)
+-        self.assertTrue(f.status == 302)
++        self.assertTrue(f.status == 304)
+ 
+ class TestDateParsers(unittest.TestCase):
+     "Test the various date parsers; most of the test cases are constructed " \

Modified: packages/feedparser/trunk/debian/patches/series
===================================================================
--- packages/feedparser/trunk/debian/patches/series	2014-02-08 18:31:24 UTC (rev 27565)
+++ packages/feedparser/trunk/debian/patches/series	2014-02-08 19:08:44 UTC (rev 27566)
@@ -1,2 +1,3 @@
 sgmllib3.patch
 chardet.diff
+redirect-status.patch




More information about the Python-modules-commits mailing list