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-05-01 00:47:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-feedparser (Old)
 and      /work/SRC/openSUSE:Factory/.python-feedparser.new.1947 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-feedparser"

Sat May  1 00:47:10 2021 rev:29 rq:889625 version:6.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-feedparser/python-feedparser.changes      
2020-10-26 16:22:55.639254317 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-feedparser.new.1947/python-feedparser.changes
    2021-05-01 00:47:18.507289027 +0200
@@ -1,0 +2,6 @@
+Thu Apr 29 14:39:29 UTC 2021 - Arun Persaud <a...@gmx.de>
+
+- add numerical_return_status.patch for 3.9 python version
+  (change of return status to None)
+
+-------------------------------------------------------------------

New:
----
  numerical_return_status.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-feedparser.spec ++++++
--- /var/tmp/diff_new_pack.W3fS2a/_old  2021-05-01 00:47:18.883287352 +0200
+++ /var/tmp/diff_new_pack.W3fS2a/_new  2021-05-01 00:47:18.883287352 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-feedparser
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,9 @@
 Group:          Development/Libraries/Python
 URL:            https://github.com/kurtmckee/feedparser
 Source:         
https://files.pythonhosted.org/packages/source/f/feedparser/feedparser-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM numerical_return_status.patch 
gh#kurtmckee/feedparser#272/files mc...@suse.com
+#  Maintain numeric result status code in Python>=3.9
+Patch0:         numerical_return_status.patch
 BuildRequires:  %{python_module chardet}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module sgmllib3k}
@@ -43,7 +46,7 @@
 2.0, CDF, Atom 0.3, Atom 1.0 feeds.
 
 %prep
-%setup -q -n feedparser-%{version}
+%autosetup -p1 -n feedparser-%{version}
 
 %build
 %python_build

++++++ numerical_return_status.patch ++++++
---
 feedparser/http.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/feedparser/http.py
+++ b/feedparser/http.py
@@ -203,7 +203,7 @@ def get(url, etag=None, modified=None, a
         result['href'] = f.url.decode('utf-8', 'ignore')
     else:
         result['href'] = f.url
-    result['status'] = getattr(f, 'status', 200)
+    result['status'] = getattr(f, 'status', None) or 200
 
     # Stop processing if the server sent HTTP 304 Not Modified.
     if getattr(f, 'code', 0) == 304:

Reply via email to