Update upstream source from tag 'upstream/6.0.10'
Update to upstream version '6.0.10'
with Debian dir 5e1c74698ac82d5d476e5c002b81ee0c2d0c620f
Nicholas D Steeves
1 year, 4 months ago
1 | 1 |
|
2 | 2 |
----- begin license block -----
|
3 | 3 |
|
4 | |
Copyright (C) 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
4 |
Copyright (C) 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
5 | 5 |
Copyright (C) 2002-2008 Mark Pilgrim
|
6 | 6 |
All rights reserved.
|
7 | 7 |
|
|
37 | 37 |
|
38 | 38 |
----- begin license block -----
|
39 | 39 |
|
40 | |
Copyright (C) 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
40 |
Copyright (C) 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
41 | 41 |
Copyright (C) 2004-2008 Mark Pilgrim. All rights reserved.
|
42 | 42 |
|
43 | 43 |
Redistribution and use in source (Sphinx ReST) and "compiled" forms (HTML, PDF,
|
0 | 0 |
coming in the next release:
|
|
1 |
|
|
2 |
6.0.10 - 21 May 2022
|
|
3 |
* Populate ``<summary>`` correctly if it comes after ``<content>``. (#260)
|
|
4 |
|
|
5 |
6.0.9 - 19 May 2022
|
|
6 |
* Fix a crash that can occur with GeoRSS feeds that lack a ``<where>`` tag. (#305)
|
1 | 7 |
|
2 | 8 |
6.0.8 - 22 June 2021
|
3 | 9 |
* Fix the name and link to the chardet module in the documentation. (#280)
|
0 | 0 |
Metadata-Version: 2.1
|
1 | 1 |
Name: feedparser
|
2 | |
Version: 6.0.8
|
|
2 |
Version: 6.0.10
|
3 | 3 |
Summary: Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds
|
4 | 4 |
Home-page: https://github.com/kurtmckee/feedparser
|
|
5 |
Download-URL: https://pypi.python.org/pypi/feedparser
|
5 | 6 |
Author: Kurt McKee
|
6 | 7 |
Author-email: contactme@kurtmckee.org
|
7 | 8 |
License: BSD-2-Clause
|
8 | |
Download-URL: https://pypi.python.org/pypi/feedparser
|
9 | 9 |
Keywords: atom,cdf,feed,parser,rdf,rss
|
10 | 10 |
Platform: POSIX
|
11 | 11 |
Platform: Windows
|
|
26 | 26 |
|
27 | 27 |
feedparser - Parse Atom and RSS feeds in Python.
|
28 | 28 |
|
29 | |
| Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
29 |
| Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
30 | 30 |
| Copyright 2002-2008 Mark Pilgrim
|
31 | 31 |
|
32 | 32 |
feedparser is open source. See the LICENSE file for more information.
|
|
77 | 77 |
|
78 | 78 |
This will spawn an HTTP server that will listen on port 8097. The tests will
|
79 | 79 |
fail if that port is in use.
|
80 | |
|
81 | |
|
0 | 0 |
feedparser - Parse Atom and RSS feeds in Python.
|
1 | 1 |
|
2 | |
| Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
2 |
| Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
3 | 3 |
| Copyright 2002-2008 Mark Pilgrim
|
4 | 4 |
|
5 | 5 |
feedparser is open source. See the LICENSE file for more information.
|
10 | 10 |
|
11 | 11 |
# project information
|
12 | 12 |
project = 'feedparser'
|
13 | |
copyright = '2010-2021 Kurt McKee, 2004-2008 Mark Pilgrim'
|
|
13 |
copyright = '2010-2022 Kurt McKee, 2004-2008 Mark Pilgrim'
|
14 | 14 |
language = 'en'
|
15 | 15 |
|
16 | 16 |
# documentation options
|
2 | 2 |
Documentation license
|
3 | 3 |
=====================
|
4 | 4 |
|
5 | |
Copyright 2010-2021 Kurt McKee, 2004-2008 Mark Pilgrim. All rights reserved.
|
|
5 |
Copyright 2010-2022 Kurt McKee, 2004-2008 Mark Pilgrim. All rights reserved.
|
6 | 6 |
|
7 | 7 |
Redistribution and use in source (Sphinx ReST) and "compiled" forms (HTML, PDF,
|
8 | 8 |
PostScript, RTF and so forth) with or without modification, are permitted
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
|
31 | 31 |
|
32 | 32 |
__author__ = 'Kurt McKee <contactme@kurtmckee.org>'
|
33 | 33 |
__license__ = 'BSD 2-clause'
|
34 | |
__version__ = '6.0.8'
|
|
34 |
__version__ = '6.0.10'
|
35 | 35 |
|
36 | 36 |
# HTTP "User-Agent" header to send to servers when downloading feeds.
|
37 | 37 |
# If you are embedding feedparser in a larger application, you should
|
0 | 0 |
# The public API for feedparser
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | 0 |
# Character encoding routines
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | 0 |
# Exceptions used throughout feedparser
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
|
192 | 192 |
self.svgOK = 0
|
193 | 193 |
self.title_depth = -1
|
194 | 194 |
self.depth = 0
|
|
195 |
self.hasContent = 0
|
195 | 196 |
if self.lang:
|
196 | 197 |
self.feeddata['language'] = self.lang.replace('_', '-')
|
197 | 198 |
|
0 | 0 |
# Support for the Atom, RSS, RDF, and CDF feed formats
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
|
258 | 258 |
def _end_item(self):
|
259 | 259 |
self.pop('item')
|
260 | 260 |
self.inentry = 0
|
|
261 |
self.hasContent = 0
|
261 | 262 |
_end_entry = _end_item
|
262 | 263 |
|
263 | 264 |
def _start_language(self, attrs_d):
|
|
387 | 388 |
|
388 | 389 |
def _start_description(self, attrs_d):
|
389 | 390 |
context = self._get_context()
|
390 | |
if 'summary' in context:
|
|
391 |
if 'summary' in context and not self.hasContent:
|
391 | 392 |
self._summaryKey = 'content'
|
392 | 393 |
self._start_content(attrs_d)
|
393 | 394 |
else:
|
|
428 | 429 |
|
429 | 430 |
def _start_summary(self, attrs_d):
|
430 | 431 |
context = self._get_context()
|
431 | |
if 'summary' in context:
|
|
432 |
if 'summary' in context and not self.hasContent:
|
432 | 433 |
self._summaryKey = 'content'
|
433 | 434 |
self._start_content(attrs_d)
|
434 | 435 |
else:
|
|
465 | 466 |
self.sourcedata.clear()
|
466 | 467 |
|
467 | 468 |
def _start_content(self, attrs_d):
|
|
469 |
self.hasContent = 1
|
468 | 470 |
self.push_content('content', attrs_d, 'text/plain', 1)
|
469 | 471 |
src = attrs_d.get('src')
|
470 | 472 |
if src:
|
|
476 | 478 |
_start_xhtml_body = _start_body
|
477 | 479 |
|
478 | 480 |
def _start_content_encoded(self, attrs_d):
|
|
481 |
self.hasContent = 1
|
479 | 482 |
self.push_content('content', attrs_d, 'text/html', 1)
|
480 | 483 |
_start_fullitem = _start_content_encoded
|
481 | 484 |
|
0 | 0 |
# Support for the administrative elements extension
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | 0 |
# Support for the Creative Commons licensing extensions
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | 0 |
# Support for the Dublin Core metadata extensions
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | 0 |
# Support for the GeoRSS format
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
|
90 | 90 |
except ValueError:
|
91 | 91 |
srs_dimension = 2
|
92 | 92 |
context = self._get_context()
|
|
93 |
if 'where' not in context:
|
|
94 |
context['where'] = {}
|
93 | 95 |
context['where']['srsName'] = srs_name
|
94 | 96 |
context['where']['srsDimension'] = srs_dimension
|
95 | 97 |
|
0 | 0 |
# Support for the iTunes format
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | 0 |
# Support for the Media RSS format
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | 0 |
# Support for the Podlove Simple Chapters format
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | 0 |
# The loose feed parser that interfaces with an SGML parsing library
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | 0 |
# The strict feed parser that interfaces with an XML parsing library
|
1 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
1 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
2 | 2 |
# Copyright 2002-2008 Mark Pilgrim
|
3 | 3 |
# All rights reserved.
|
4 | 4 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
0 | 0 |
Metadata-Version: 2.1
|
1 | 1 |
Name: feedparser
|
2 | |
Version: 6.0.8
|
|
2 |
Version: 6.0.10
|
3 | 3 |
Summary: Universal feed parser, handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds
|
4 | 4 |
Home-page: https://github.com/kurtmckee/feedparser
|
|
5 |
Download-URL: https://pypi.python.org/pypi/feedparser
|
5 | 6 |
Author: Kurt McKee
|
6 | 7 |
Author-email: contactme@kurtmckee.org
|
7 | 8 |
License: BSD-2-Clause
|
8 | |
Download-URL: https://pypi.python.org/pypi/feedparser
|
9 | 9 |
Keywords: atom,cdf,feed,parser,rdf,rss
|
10 | 10 |
Platform: POSIX
|
11 | 11 |
Platform: Windows
|
|
26 | 26 |
|
27 | 27 |
feedparser - Parse Atom and RSS feeds in Python.
|
28 | 28 |
|
29 | |
| Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
29 |
| Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
30 | 30 |
| Copyright 2002-2008 Mark Pilgrim
|
31 | 31 |
|
32 | 32 |
feedparser is open source. See the LICENSE file for more information.
|
|
77 | 77 |
|
78 | 78 |
This will spawn an HTTP server that will listen on port 8097. The tests will
|
79 | 79 |
fail if that port is in use.
|
80 | |
|
81 | |
|
668 | 668 |
tests/illformed/chardet/windows1255.xml
|
669 | 669 |
tests/illformed/geo/georss_point_no_coords.xml
|
670 | 670 |
tests/illformed/geo/georss_polygon_insufficient_coords.xml
|
|
671 |
tests/illformed/geo/gml_point.xml
|
671 | 672 |
tests/wellformed/amp/amp01.xml
|
672 | 673 |
tests/wellformed/amp/amp02.xml
|
673 | 674 |
tests/wellformed/amp/amp03.xml
|
|
910 | 911 |
tests/wellformed/atom10/entry_category_scheme.xml
|
911 | 912 |
tests/wellformed/atom10/entry_category_term.xml
|
912 | 913 |
tests/wellformed/atom10/entry_category_term_non_ascii.xml
|
|
914 |
tests/wellformed/atom10/entry_content_and_summary.xml
|
913 | 915 |
tests/wellformed/atom10/entry_content_application_xml.xml
|
914 | 916 |
tests/wellformed/atom10/entry_content_base64.xml
|
915 | 917 |
tests/wellformed/atom10/entry_content_base64_2.xml
|
0 | |
# Copyright 2010-2021 Kurt McKee <contactme@kurtmckee.org>
|
|
0 |
# Copyright 2010-2022 Kurt McKee <contactme@kurtmckee.org>
|
1 | 1 |
# Copyright 2002-2008 Mark Pilgrim
|
2 | 2 |
# All rights reserved.
|
3 | 3 |
#
|
|
0 |
<!--
|
|
1 |
Description: item point where
|
|
2 |
Expect: entries[0]['where']['type'] == 'Point' and entries[0]['where']['coordinates'] == (31.1732, 36.9382)
|
|
3 |
-->
|
|
4 |
<feed
|
|
5 |
xmlns="http://www.w3.org/2005/Atom"
|
|
6 |
xmlns:gml="http://www.opengis.net/gml"
|
|
7 |
>
|
|
8 |
<entry>
|
|
9 |
<gml:Point>
|
|
10 |
<gml:pos>36.9382 31.1732</gml:pos>
|
|
11 |
</gml:Point>
|
|
12 |
</entry>
|
|
13 |
</feed>
|
|
0 |
<!--
|
|
1 |
Description: entry summary follows content with different value
|
|
2 |
Expect: not bozo and entries[0]['summary'] == 'Summary'
|
|
3 |
-->
|
|
4 |
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
5 |
<entry>
|
|
6 |
<content>Example Atom</content>
|
|
7 |
<summary>Summary</summary>
|
|
8 |
</entry>
|
|
9 |
</feed>
|