Skip to content

Commit

Permalink
Merge branch 'release-6.0.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed May 19, 2022
2 parents 76f4533 + 8fcc158 commit 6280520
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,6 +4,7 @@ dist/
env/
feedparser.egg-info/
.idea/
.venv/
fpdocs/
venv/
build/
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.rst
Expand Up @@ -24,3 +24,4 @@ bug report!
* `Bernd Schlapsi <https://github.com/brot>`_
* `Aaron Swartz <http://www.aaronsw.com/>`_
* `Jakub Wilk <http://jwilk.net/>`_
* `Nestor Rodriguez <https://github.com/n3s7or>`_
3 changes: 3 additions & 0 deletions 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 ``<where>`` tag. (#305)

6.0.8 - 22 June 2021
* Fix the name and link to the chardet module in the documentation. (#280)

Expand Down
2 changes: 1 addition & 1 deletion feedparser/__init__.py
Expand Up @@ -32,7 +32,7 @@

__author__ = 'Kurt McKee <contactme@kurtmckee.org>'
__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
Expand Down
2 changes: 2 additions & 0 deletions feedparser/namespaces/georss.py
Expand Up @@ -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

Expand Down
14 changes: 14 additions & 0 deletions tests/illformed/geo/gml_point.xml
@@ -0,0 +1,14 @@
<!--
Description: item point where
Expect: entries[0]['where']['type'] == 'Point' and entries[0]['where']['coordinates'] == (31.1732, 36.9382)
-->
<feed
xmlns="http://www.w3.org/2005/Atom"
xmlns:gml="http://www.opengis.net/gml"
>
<entry>
<gml:Point>
<gml:pos>36.9382 31.1732</gml:pos>
</gml:Point>
</entry>
</feed>

0 comments on commit 6280520

Please sign in to comment.