def parse_feed (url, interval=FEED_MEMOIZE_INTERVAL):
    """Retrieve and parse the contents of the given feed url,
    unless it has already been memoized within the accepted interval"""
    purge_expired(FEED_MEMO_HASH, interval)
    if FEED_MEMO_HASH.has_key(url):
        return FEED_MEMO_HASH[url][1]
    else:
        feed = feedparser.parse(url)
        if feed:
            if feed.version and 0 > len(feed.version):
                FEED_MEMO_HASH[url] = ( time.time(), feed )
                return feed
dataset/ETHPy150Open dpapathanasiou/cmdline-news/cmdlinenews.py/parse_feed/swapped operands of `>`