All pastes #123678 Raw Edit

Stuff

public python v1 · immutable
#123678 ·published 2006-08-09 14:13 UTC
rendered paste body
diff -ubr /usr/share/planet/planetlib.py planet2/usr/share/planet/planetlib.py--- /usr/share/planet/planetlib.py      2005-06-20 15:54:52.000000000 -0400+++ planet2/usr/share/planet/planetlib.py       2004-12-29 13:07:30.000000000 -0500@@ -294,11 +294,11 @@         new_items = []         for item in feed.items:             new_items.append(NewsItem(item, self))-            #if abs(new_items[-1].date[0] - time.gmtime()[0]) > 1:-            #    logging.warning(("Obviously bogus year in feed (%d), " +-            #                     "cowardly not updating")-            #                    % (new_items[-1].date[0],))-            #    return+            if abs(new_items[-1].date[0] - time.gmtime()[0]) > 1:+                logging.warning(("Obviously bogus year in feed (%d), " ++                                 "cowardly not updating")+                                % (new_items[-1].date[0],))+                return         self.items = new_items         self.title = feed.channel.get('title', '')