17
0

Accepting request 1303747 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1303747
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-feedparser?expand=0&rev=40
This commit is contained in:
2025-09-11 12:40:01 +00:00
committed by Git OBS Bridge
5 changed files with 15 additions and 42 deletions

View File

@@ -1,34 +0,0 @@
From c55bd8ad37db89bd219783bc514d600c9523ed38 Mon Sep 17 00:00:00 2001
From: Kurt McKee <contactme@kurtmckee.org>
Date: Sat, 12 Jun 2021 15:32:05 -0500
Subject: [PATCH] Fix a crash that occurs with Python 3.10.0b2
---
changelog.d/20210612_152233_kurtmckee_python3_10.rst | 4 ++++
feedparser/html.py | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
create mode 100644 changelog.d/20210612_152233_kurtmckee_python3_10.rst
diff --git a/changelog.d/20210612_152233_kurtmckee_python3_10.rst b/changelog.d/20210612_152233_kurtmckee_python3_10.rst
new file mode 100644
index 00000000..3795cdc0
--- /dev/null
+++ b/changelog.d/20210612_152233_kurtmckee_python3_10.rst
@@ -0,0 +1,4 @@
+Fixed
+-----
+
+* Fix a crash that occurs with Python 3.10.0b2.
diff --git a/feedparser/html.py b/feedparser/html.py
index be913311..f78270a3 100644
--- a/feedparser/html.py
+++ b/feedparser/html.py
@@ -337,7 +337,7 @@ def parse_declaration(self, i):
try:
return sgmllib.SGMLParser.parse_declaration(self, i)
- except sgmllib.SGMLParseError:
+ except (AssertionError, sgmllib.SGMLParseError):
# Escape the doctype declaration and continue parsing.
self.handle_data('&lt;')
return i+1

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c9d0407b64c6f2a065d0ebb292c2b35c01050cc0dc33757461aaabdc4c4184d5
size 286197

3
feedparser-6.0.12.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:64f76ce90ae3e8ef5d1ede0f8d3b50ce26bcce71dd8ae5e82b1cd2d4a5f94228
size 286579

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Sep 10 19:04:09 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>
- update to version 6.0.11:
* Fix an AssertionError crash that occurs with Python 3.10 and
higher. (#304)
* Fix a DeprecationWarning thrown during calls to re.sub. (#389)
* Add a Read the Docs configuration.
- drop 304_python310-crash.patch: fixed upstream
-------------------------------------------------------------------
Tue May 27 11:44:14 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-feedparser
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,16 +18,13 @@
%{?sle15_python_module_pythons}
Name: python-feedparser
Version: 6.0.11
Version: 6.0.12
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 304_python310-crash.patch gh#kurtmckee/feedparser#304 mcepl@suse.com
# Fix crash on Python 3.10
Patch0: 304_python310-crash.patch
BuildRequires: %{python_module chardet}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}