summaryrefslogtreecommitdiff
path: root/dev-python/feedparser
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/feedparser')
-rw-r--r--dev-python/feedparser/Manifest1
-rw-r--r--dev-python/feedparser/files/feedparser-5.2.1-sgmllib.patch78
2 files changed, 0 insertions, 79 deletions
diff --git a/dev-python/feedparser/Manifest b/dev-python/feedparser/Manifest
index ec597531505e..55777e7620fa 100644
--- a/dev-python/feedparser/Manifest
+++ b/dev-python/feedparser/Manifest
@@ -1,4 +1,3 @@
-AUX feedparser-5.2.1-sgmllib.patch 2748 BLAKE2B c7b4ce987f0067020e996134379ff0d30b151fc64a85ddf8a66748d118d748cc3552c2a889e3621c90221c37d1adcf8668e2e417566a6059a4a272ce1c3323cd SHA512 3ef63206b043179f5a09cf1f3d5256aed1ae0c559b99fc0ec4c1de756dd678af8a7672673f864f72c8162705056fb0011ff19b39debfcbd0faf402804869f681
AUX feedparser-6.0.8-fix-py3.10.patch 555 BLAKE2B 20ff9ae0e540bc2dfbb2d336a12804c444f99f9249e4a4f4aff241cdb3e927aeb8c64ac5eb410b273f7628f5fa4bebd19dc26776ca0ad65a591e493197884c25 SHA512 6a663180a185e5ff915bf5f45220e08ef58c2bc8253e7d943cbb065c202b611dcd1cd6baeef26d9ea6487679d69b3449d2c5f7d6dcc6044e19df52650190c1f9
DIST feedparser-6.0.8.tar.gz 252496 BLAKE2B 1a17ef6aa41e0782743d5d331ba26e2d1518475534adcd62457bc6fab00b93e24a3a3b03f4acf8358d321464b985c9d09383dc0373680577c10b742c5e1366fd SHA512 9de702dbebe28b379fd164afed8c408f46301f3ebf91d9f862f12de98a1bcee9f6d38a27c0b8a64e87bc0a20d0ad992ed78b190406649f775e2e8c9ca62b4d8c
EBUILD feedparser-6.0.8.ebuild 983 BLAKE2B 2a47b43d6bcc59e1c5ce698a37a06b707d5290b0eea0147124e6704eb95b4c01081c622461e643daa046938ccc9ecc68b4d8b4ef8eacb7b45a96e25ddc77a19a SHA512 1d4dd599df9cdb48d064269c65d1b99c8b089d52cc32189a54dc78964b85fbc6a07a8e63254194d3f776a10c4c50781e7134d178661165ad66e082b8f304df77
diff --git a/dev-python/feedparser/files/feedparser-5.2.1-sgmllib.patch b/dev-python/feedparser/files/feedparser-5.2.1-sgmllib.patch
deleted file mode 100644
index 714480560e52..000000000000
--- a/dev-python/feedparser/files/feedparser-5.2.1-sgmllib.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From 812793c07d3202d3f5bc39091aec2e7071d000c8 Mon Sep 17 00:00:00 2001
-From: Sebastian Pipping <sebastian@pipping.org>
-Date: Sun, 1 Jan 2012 19:30:57 +0100
-Subject: [PATCH] Use shipped sgmllib for Python 3.x
-
----
- feedparser/feedparser.py | 19 +++----------------
- setup.py | 2 +-
- 2 files changed, 4 insertions(+), 17 deletions(-)
-
-diff --git a/feedparser/feedparser.py b/feedparser/feedparser.py
-index 8275c29..9a8a053 100644
---- a/feedparser/feedparser.py
-+++ b/feedparser/feedparser.py
-@@ -204,17 +204,9 @@ else:
- try:
- import sgmllib
- except ImportError:
-- # This is probably Python 3, which doesn't include sgmllib anymore
-- _SGML_AVAILABLE = 0
-+ import _feedparser_sgmllib as sgmllib
-
-- # Mock sgmllib enough to allow subclassing later on
-- class sgmllib(object):
-- class SGMLParser(object):
-- def goahead(self, i):
-- pass
-- def parse_starttag(self, i):
-- pass
--else:
-+if True:
- _SGML_AVAILABLE = 1
-
- # sgmllib defines a number of module-level regular expressions that are
-@@ -2520,9 +2512,6 @@ class _RelativeURIResolver(_BaseHTMLProcessor):
- _BaseHTMLProcessor.unknown_starttag(self, tag, attrs)
-
- def _resolveRelativeURIs(htmlSource, baseURI, encoding, _type):
-- if not _SGML_AVAILABLE:
-- return htmlSource
--
- p = _RelativeURIResolver(baseURI, encoding, _type)
- p.feed(htmlSource)
- return p.output()
-@@ -2803,8 +2792,6 @@ class _HTMLSanitizer(_BaseHTMLProcessor):
-
-
- def _sanitizeHTML(htmlSource, encoding, _type):
-- if not _SGML_AVAILABLE:
-- return htmlSource
- p = _HTMLSanitizer(encoding, _type)
- htmlSource = htmlSource.replace('<![CDATA[', '&lt;![CDATA[')
- p.feed(htmlSource)
-@@ -3890,7 +3877,7 @@ def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, refer
- result['bozo'] = 1
- result['bozo_exception'] = feedparser.exc or e
- use_strict_parser = 0
-- if not use_strict_parser and _SGML_AVAILABLE:
-+ if not use_strict_parser:
- feedparser = _LooseFeedParser(baseuri, baselang, 'utf-8', entities)
- feedparser.feed(data.decode('utf-8', 'replace'))
- result['feed'] = feedparser.feeddata
-diff --git a/setup.py b/setup.py
-index a4a60fe..8c15451 100644
---- a/setup.py
-+++ b/setup.py
-@@ -16,7 +16,7 @@ setup(
- download_url = 'https://pypi.python.org/pypi/feedparser',
- platforms = ['POSIX', 'Windows'],
- package_dir = {'': 'feedparser'},
-- py_modules = ['feedparser'],
-+ py_modules = ['feedparser', '_feedparser_sgmllib'],
- keywords = ['atom', 'cdf', 'feed', 'parser', 'rdf', 'rss'],
- classifiers = [
- 'Development Status :: 5 - Production/Stable',
---
-1.7.8.1
-