Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 724352
Collapse All | Expand All

(-)a/feedparser/feedparser.py (-4 / +7 lines)
Lines 3764-3773 def _gen_georss_coords(value, swap=True, dims=2): Link Here
3764
    latlons = itertools.imap(float, value.strip().replace(',', ' ').split())
3764
    latlons = itertools.imap(float, value.strip().replace(',', ' ').split())
3765
    nxt = latlons.next
3765
    nxt = latlons.next
3766
    while True:
3766
    while True:
3767
        t = [nxt(), nxt()][::swap and -1 or 1]
3767
        try:
3768
        if dims == 3:
3768
            t = [nxt(), nxt()][::swap and -1 or 1]
3769
            t.append(nxt())
3769
            if dims == 3:
3770
        yield tuple(t)
3770
                t.append(nxt())
3771
            yield tuple(t)
3772
        except StopIteration:
3773
            return
3771
3774
3772
def _parse_georss_point(value, swap=True, dims=2):
3775
def _parse_georss_point(value, swap=True, dims=2):
3773
    # A point contains a single latitude-longitude pair, separated by
3776
    # A point contains a single latitude-longitude pair, separated by

Return to bug 724352