forked from pool/python-feedparser
Accepting request 899978 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/899978 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-feedparser?expand=0&rev=30
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1b00a105425f492f3954fd346e5b524ca9cef3a4bbf95b8809470e9857aa1074
|
||||
size 284734
|
||||
3
feedparser-6.0.5.tar.gz
Normal file
3
feedparser-6.0.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cae320004d904a12e33b1b10bd63766bc2823eec94e03b802fbb228d820838d9
|
||||
size 285347
|
||||
@@ -1,15 +0,0 @@
|
||||
---
|
||||
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:
|
||||
@@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 14 16:04:31 UTC 2021 - Benoît Monin <benoit.monin@gmx.fr>
|
||||
|
||||
- update to version 6.0.5:
|
||||
* Prevent a TypeError crash that may occur when including a
|
||||
username and password in the feed URL. (#276)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 13 19:01:57 UTC 2021 - Benoît Monin <benoit.monin@gmx.fr>
|
||||
|
||||
- update to version 6.0.4:
|
||||
* Prevent a UnicodeDecodeError crash that may occur when the
|
||||
title element's type attribute exists but is empty. (#277)
|
||||
* Prevent a UnicodeEncodeError crash that may occur if the URL
|
||||
contains Unicode characters in the path. (#273)
|
||||
- additional changes from version 6.0.3:
|
||||
* Fix an issue with the HTTP request status on Python >= 3.9.
|
||||
- drop numerical_return_status.patch: fixed upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 29 14:39:29 UTC 2021 - Arun Persaud <arun@gmx.de>
|
||||
|
||||
|
||||
@@ -19,16 +19,13 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-feedparser
|
||||
Version: 6.0.2
|
||||
Version: 6.0.5
|
||||
Release: 0
|
||||
Summary: Universal Feed Parser Module for Python
|
||||
License: BSD-2-Clause
|
||||
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 mcepl@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}
|
||||
|
||||
Reference in New Issue
Block a user