Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 640576 Details for
Bug 724352
dev-python/feedparser-5.2.1 with >=dev-lang/python-3.7: PEP479 Cause RuntimeError: generator raised StopIteration
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
backported upstream patch for feedparser 5.2.1
feedparser-stopiteration-py37.patch (text/plain), 804 bytes, created by
Till Schäfer
on 2020-05-20 16:28:45 UTC
(
hide
)
Description:
backported upstream patch for feedparser 5.2.1
Filename:
MIME Type:
Creator:
Till Schäfer
Created:
2020-05-20 16:28:45 UTC
Size:
804 bytes
patch
obsolete
>diff --git a/feedparser/feedparser.py b/feedparser/feedparser.py >index 999cb0d..8e7bc4c 100644 >--- a/feedparser/feedparser.py >+++ b/feedparser/feedparser.py >@@ -3764,10 +3764,13 @@ def _gen_georss_coords(value, swap=True, dims=2): > latlons = itertools.imap(float, value.strip().replace(',', ' ').split()) > nxt = latlons.next > while True: >- t = [nxt(), nxt()][::swap and -1 or 1] >- if dims == 3: >- t.append(nxt()) >- yield tuple(t) >+ try: >+ t = [nxt(), nxt()][::swap and -1 or 1] >+ if dims == 3: >+ t.append(nxt()) >+ yield tuple(t) >+ except StopIteration: >+ return > > def _parse_georss_point(value, swap=True, dims=2): > # A point contains a single latitude-longitude pair, separated by
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 724352
: 640576