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-24 18:22:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-feedparser (Old)
and /work/SRC/openSUSE:Factory/.python-feedparser.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-feedparser"
Thu Jun 24 18:22:33 2021 rev:32 rq:901596 version:6.0.8
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-feedparser/python-feedparser.changes
2021-06-19 23:03:27.771710401 +0200
+++
/work/SRC/openSUSE:Factory/.python-feedparser.new.2625/python-feedparser.changes
2021-06-24 18:22:51.964935645 +0200
@@ -1,0 +2,9 @@
+Wed Jun 23 18:24:35 UTC 2021 - Beno??t Monin <[email protected]>
+
+- update to version 6.0.8:
+ * Fix the name and link to the chardet module in the
+ documentation. (#280)
+- additional changes from version 6.0.7:
+ * Catch urllib.error.URLError to prevent crashes. (#239)
+
+-------------------------------------------------------------------
Old:
----
feedparser-6.0.6.tar.gz
New:
----
feedparser-6.0.8.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-feedparser.spec ++++++
--- /var/tmp/diff_new_pack.j0YoBD/_old 2021-06-24 18:22:52.492936230 +0200
+++ /var/tmp/diff_new_pack.j0YoBD/_new 2021-06-24 18:22:52.496936235 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-feedparser
-Version: 6.0.6
+Version: 6.0.8
Release: 0
Summary: Universal Feed Parser Module for Python
License: BSD-2-Clause
++++++ feedparser-6.0.6.tar.gz -> feedparser-6.0.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.6/NEWS new/feedparser-6.0.8/NEWS
--- old/feedparser-6.0.6/NEWS 2021-06-15 15:54:18.000000000 +0200
+++ new/feedparser-6.0.8/NEWS 2021-06-22 14:25:13.000000000 +0200
@@ -1,5 +1,13 @@
coming in the next release:
+6.0.8 - 22 June 2021
+ * Fix the name and link to the chardet module in the documentation.
(#280)
+
+ No code changed in this hotfix, only documentation.
+
+6.0.7 - 21 June 2021
+ * Catch ``urllib.error.URLError`` to prevent crashes. (#239)
+
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)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.6/PKG-INFO
new/feedparser-6.0.8/PKG-INFO
--- old/feedparser-6.0.6/PKG-INFO 2021-06-15 15:55:01.416283600 +0200
+++ new/feedparser-6.0.8/PKG-INFO 2021-06-22 14:26:10.866088400 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: feedparser
-Version: 6.0.6
+Version: 6.0.8
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.6/docs/character-encoding.rst
new/feedparser-6.0.8/docs/character-encoding.rst
--- old/feedparser-6.0.6/docs/character-encoding.rst 2020-09-01
05:42:10.000000000 +0200
+++ new/feedparser-6.0.8/docs/character-encoding.rst 2021-06-22
14:25:13.000000000 +0200
@@ -87,7 +87,7 @@
#. the encoding sniffed from the first four bytes of the document (as per
`Section F <http://www.w3.org/TR/REC-xml/#sec-guessing-no-ext-info>`_)
-#. the encoding auto-detected by the `Universal Encoding Detector
<http://chardet.feedparser.org/>`_, if installed
+#. the encoding auto-detected by the `chardet
<https://github.com/chardet/chardet>`_, if installed
#. utf-8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.6/feedparser/__init__.py
new/feedparser-6.0.8/feedparser/__init__.py
--- old/feedparser-6.0.6/feedparser/__init__.py 2021-06-15 15:54:18.000000000
+0200
+++ new/feedparser-6.0.8/feedparser/__init__.py 2021-06-22 14:25:13.000000000
+0200
@@ -32,7 +32,7 @@
__author__ = 'Kurt McKee <[email protected]>'
__license__ = 'BSD 2-clause'
-__version__ = '6.0.6'
+__version__ = '6.0.8'
# 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.6/feedparser/api.py
new/feedparser-6.0.8/feedparser/api.py
--- old/feedparser-6.0.6/feedparser/api.py 2021-06-15 14:03:13.000000000
+0200
+++ new/feedparser-6.0.8/feedparser/api.py 2021-06-22 14:19:57.000000000
+0200
@@ -27,6 +27,7 @@
# POSSIBILITY OF SUCH DAMAGE.
import io
+import urllib.error
import urllib.parse
import xml.sax
@@ -211,7 +212,14 @@
headers={},
)
- data = _open_resource(url_file_stream_or_string, etag, modified, agent,
referrer, handlers, request_headers, result)
+ try:
+ data = _open_resource(url_file_stream_or_string, etag, modified,
agent, referrer, handlers, request_headers, result)
+ except urllib.error.URLError as error:
+ result.update({
+ 'bozo': True,
+ 'bozo_exception': error,
+ })
+ return result
if not data:
return result
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/feedparser-6.0.6/feedparser.egg-info/PKG-INFO
new/feedparser-6.0.8/feedparser.egg-info/PKG-INFO
--- old/feedparser-6.0.6/feedparser.egg-info/PKG-INFO 2021-06-15
15:54:55.000000000 +0200
+++ new/feedparser-6.0.8/feedparser.egg-info/PKG-INFO 2021-06-22
14:25:46.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: feedparser
-Version: 6.0.6
+Version: 6.0.8
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.6/tests/runtests.py
new/feedparser-6.0.8/tests/runtests.py
--- old/feedparser-6.0.6/tests/runtests.py 2021-06-15 15:54:18.000000000
+0200
+++ new/feedparser-6.0.8/tests/runtests.py 2021-06-22 14:19:57.000000000
+0200
@@ -41,6 +41,7 @@
import time
import unittest
import urllib.error
+import urllib.request
import warnings
import xml.sax
import zlib
@@ -417,6 +418,26 @@
with self.assertRaises(urllib.error.URLError):
feedparser.api._open_resource(url, '', '', '', '', [], {}, {})
+ def test_http_client_urllib_error(self):
+ """Confirm urllib.error.URLError is caught correctly.
+
+ urllib.request.AbstractHTTPHandler.do_open() may explicitly raise
+ urllib.error.URLError in e.g. Python 3.9.
+ """
+
+ original_do_open = urllib.request.AbstractHTTPHandler.do_open
+ exception = urllib.error.URLError('bogus')
+
+ def do_open(*args, **kwargs):
+ raise exception
+
+ urllib.request.AbstractHTTPHandler.do_open = do_open
+ result = feedparser.parse('https://bogus.example')
+ assert result['bozo'] is True
+ assert result['bozo_exception'] is exception
+
+ urllib.request.AbstractHTTPHandler.do_open = original_do_open
+
def make_safe_uri_test(rel, expect, doc):
def fn(self):