Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3
python-feedparser
py37.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File py37.patch of Package python-feedparser
diff -ur feedparser-5.2.1-orig/feedparser/feedparser.py feedparser-5.2.1/feedparser/feedparser.py --- feedparser-5.2.1-orig/feedparser/feedparser.py 2015-07-24 12:00:04.000000000 +0700 +++ feedparser-5.2.1/feedparser/feedparser.py 2019-03-31 02:26:41.242238792 +0700 @@ -3764,7 +3764,11 @@ latlons = itertools.imap(float, value.strip().replace(',', ' ').split()) nxt = latlons.next while True: - t = [nxt(), nxt()][::swap and -1 or 1] + # Python 3.7 support + try: + t = [nxt(), nxt()][::swap and -1 or 1] + except StopIteration: + return if dims == 3: t.append(nxt()) yield tuple(t)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor