Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-feedparser for openSUSE:Factory checked in at 2021-06-19 23:02:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-feedparser (Old) and /work/SRC/openSUSE:Factory/.python-feedparser.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-feedparser" Sat Jun 19 23:02:53 2021 rev:31 rq:900583 version:6.0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-feedparser/python-feedparser.changes 2021-06-14 23:11:53.184837283 +0200 +++ /work/SRC/openSUSE:Factory/.python-feedparser.new.2625/python-feedparser.changes 2021-06-19 23:03:27.771710401 +0200 @@ -1,0 +2,7 @@ +Wed Jun 16 19:22:23 UTC 2021 - Beno??t Monin <benoit.mo...@gmx.fr> + +- update to version 6.0.6: + * Prevent an AttributeError that occurs when a server returns + HTTP 3xx but doesn't include a Location header as well. (#267) + +------------------------------------------------------------------- Old: ---- feedparser-6.0.5.tar.gz New: ---- feedparser-6.0.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-feedparser.spec ++++++ --- /var/tmp/diff_new_pack.5lD4C9/_old 2021-06-19 23:03:28.211711080 +0200 +++ /var/tmp/diff_new_pack.5lD4C9/_new 2021-06-19 23:03:28.215711086 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-feedparser -Version: 6.0.5 +Version: 6.0.6 Release: 0 Summary: Universal Feed Parser Module for Python License: BSD-2-Clause ++++++ feedparser-6.0.5.tar.gz -> feedparser-6.0.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/feedparser-6.0.5/NEWS new/feedparser-6.0.6/NEWS --- old/feedparser-6.0.5/NEWS 2021-06-14 14:25:31.000000000 +0200 +++ new/feedparser-6.0.6/NEWS 2021-06-15 15:54:18.000000000 +0200 @@ -1,5 +1,9 @@ coming in the next release: +6.0.6 - 15 June 2021 + * Prevent an AttributeError that occurs when a server returns HTTP 3xx + but doesn't include a Location header as well. (#267) + 6.0.5 - 14 June 2021 * Prevent a TypeError crash that may occur when including a username and password in the feed URL. (#276) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/feedparser-6.0.5/PKG-INFO new/feedparser-6.0.6/PKG-INFO --- old/feedparser-6.0.5/PKG-INFO 2021-06-14 14:26:19.157571300 +0200 +++ new/feedparser-6.0.6/PKG-INFO 2021-06-15 15:55:01.416283600 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: feedparser -Version: 6.0.5 +Version: 6.0.6 Summary: Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds Home-page: https://github.com/kurtmckee/feedparser Author: Kurt McKee diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/feedparser-6.0.5/feedparser/__init__.py new/feedparser-6.0.6/feedparser/__init__.py --- old/feedparser-6.0.5/feedparser/__init__.py 2021-06-14 14:25:31.000000000 +0200 +++ new/feedparser-6.0.6/feedparser/__init__.py 2021-06-15 15:54:18.000000000 +0200 @@ -32,7 +32,7 @@ __author__ = 'Kurt McKee <contac...@kurtmckee.org>' __license__ = 'BSD 2-clause' -__version__ = '6.0.5' +__version__ = '6.0.6' # HTTP "User-Agent" header to send to servers when downloading feeds. # If you are embedding feedparser in a larger application, you should diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/feedparser-6.0.5/feedparser/http.py new/feedparser-6.0.6/feedparser/http.py --- old/feedparser-6.0.5/feedparser/http.py 2021-06-14 14:25:31.000000000 +0200 +++ new/feedparser-6.0.6/feedparser/http.py 2021-06-15 15:54:18.000000000 +0200 @@ -53,6 +53,8 @@ def http_error_301(self, req, fp, code, msg, hdrs): result = urllib.request.HTTPRedirectHandler.http_error_301(self, req, fp, code, msg, hdrs) + if not result: + return fp result.status = code result.newurl = result.geturl() return result diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/feedparser-6.0.5/feedparser.egg-info/PKG-INFO new/feedparser-6.0.6/feedparser.egg-info/PKG-INFO --- old/feedparser-6.0.5/feedparser.egg-info/PKG-INFO 2021-06-14 14:26:13.000000000 +0200 +++ new/feedparser-6.0.6/feedparser.egg-info/PKG-INFO 2021-06-15 15:54:55.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: feedparser -Version: 6.0.5 +Version: 6.0.6 Summary: Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds Home-page: https://github.com/kurtmckee/feedparser Author: Kurt McKee diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/feedparser-6.0.5/feedparser.egg-info/SOURCES.txt new/feedparser-6.0.6/feedparser.egg-info/SOURCES.txt --- old/feedparser-6.0.5/feedparser.egg-info/SOURCES.txt 2021-06-14 14:26:14.000000000 +0200 +++ new/feedparser-6.0.6/feedparser.egg-info/SOURCES.txt 2021-06-15 15:54:57.000000000 +0200 @@ -644,6 +644,7 @@ tests/entities/zwnj.xml tests/http/http_redirect_to_304.xml tests/http/http_status_301.xml +tests/http/http_status_302-no-location.xml tests/http/http_status_302.xml tests/http/http_status_303.xml tests/http/http_status_304.xml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/feedparser-6.0.5/tests/http/http_status_302-no-location.xml new/feedparser-6.0.6/tests/http/http_status_302-no-location.xml --- old/feedparser-6.0.5/tests/http/http_status_302-no-location.xml 1970-01-01 01:00:00.000000000 +0100 +++ new/feedparser-6.0.6/tests/http/http_status_302-no-location.xml 2021-06-15 15:54:18.000000000 +0200 @@ -0,0 +1,5 @@ +<!-- +Header: Status: 302 +Description: http status 302 (no location) +Expect: 0 +--> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/feedparser-6.0.5/tests/runtests.py new/feedparser-6.0.6/tests/runtests.py --- old/feedparser-6.0.5/tests/runtests.py 2021-06-14 14:25:31.000000000 +0200 +++ new/feedparser-6.0.6/tests/runtests.py 2021-06-15 15:54:18.000000000 +0200 @@ -522,6 +522,12 @@ self.assertEqual(f.href, 'http://localhost:8097/tests/http/target.xml') self.assertEqual(f.entries[0].title, 'target') + def test_302_no_location(self): + """Confirm no AttributeErrors when an HTTP 3xx response has no Location header.""" + + f = feedparser.parse('http://localhost:8097/tests/http/http_status_302-no-location.xml') + self.assertEqual(f.status, 302) + def test_303(self): f = feedparser.parse('http://localhost:8097/tests/http/http_status_303.xml') self.assertEqual(f.status, 303) @@ -900,7 +906,7 @@ # there are several compression test cases that must be accounted for # as well as a number of http status tests that redirect to a target # and a few `_open_resource`-related tests - httpcount = 6 + 16 + 2 + httpcount = 7 + 16 + 2 httpcount += len([f for f in allfiles if 'http' in f]) httpcount += len([f for f in wellformedfiles if 'http' in f]) httpcount += len([f for f in illformedfiles if 'http' in f])