From 0c933ce9664430ba58074614bb4ebae7601a4f99 Mon Sep 17 00:00:00 2001 From: Nestor Date: Fri, 25 Mar 2022 14:50:22 -0400 Subject: [PATCH 1/4] fixes #305 --- feedparser/namespaces/georss.py | 2 ++ tests/illformed/geo/gml_point.xml | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/illformed/geo/gml_point.xml diff --git a/feedparser/namespaces/georss.py b/feedparser/namespaces/georss.py index 76c9c63e..62605f01 100644 --- a/feedparser/namespaces/georss.py +++ b/feedparser/namespaces/georss.py @@ -91,6 +91,8 @@ def _parse_srs_attrs(self, attrs_d): except ValueError: srs_dimension = 2 context = self._get_context() + if 'where' not in context: + context['where'] = {} context['where']['srsName'] = srs_name context['where']['srsDimension'] = srs_dimension diff --git a/tests/illformed/geo/gml_point.xml b/tests/illformed/geo/gml_point.xml new file mode 100644 index 00000000..0df1b4fc --- /dev/null +++ b/tests/illformed/geo/gml_point.xml @@ -0,0 +1,14 @@ + + + + + 36.9382 31.1732 + + + From a58a698d43c6b5be27203f51cfd0d3a355c3057c Mon Sep 17 00:00:00 2001 From: Nestor Date: Fri, 25 Mar 2022 15:10:20 -0400 Subject: [PATCH 2/4] updated contributors list --- CONTRIBUTORS.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index ca6e9f28..e29d89e7 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -24,3 +24,4 @@ bug report! * `Bernd Schlapsi `_ * `Aaron Swartz `_ * `Jakub Wilk `_ +* `Nestor Rodriguez `_ From bf4b0505e4034c7135c837cc0be5a932054d652c Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Thu, 19 May 2022 07:36:47 -0500 Subject: [PATCH 3/4] Bump project metadata --- NEWS | 3 +++ feedparser/__init__.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e02c642a..1339cf07 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ coming in the next release: +6.0.9 - 19 May 2022 + * Fix a crash that can occur with GeoRSS feeds that lack a ```` tag. (#305) + 6.0.8 - 22 June 2021 * Fix the name and link to the chardet module in the documentation. (#280) diff --git a/feedparser/__init__.py b/feedparser/__init__.py index 68c2a424..2e73bfa7 100644 --- a/feedparser/__init__.py +++ b/feedparser/__init__.py @@ -32,7 +32,7 @@ __author__ = 'Kurt McKee ' __license__ = 'BSD 2-clause' -__version__ = '6.0.8' +__version__ = '6.0.9' # HTTP "User-Agent" header to send to servers when downloading feeds. # If you are embedding feedparser in a larger application, you should From 8fcc15803e59995b43a32ae284c40e664e4ce5f8 Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Thu, 19 May 2022 07:37:06 -0500 Subject: [PATCH 4/4] Add `.venv/` to `.gitignore` --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 6da56d79..0209f88b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ dist/ env/ feedparser.egg-info/ .idea/ +.venv/ fpdocs/ venv/ build/