From ce11abfb59d9765aba759b9bebbdd1c2311df151 Mon Sep 17 00:00:00 2001 From: Filippo Giunchedi Date: Sun, 30 Nov 2008 11:42:14 +0100 Subject: [PATCH] again, trailing whitespaces removed --- queue_rss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/queue_rss.py b/queue_rss.py index 9ca66abb..6e5c2407 100755 --- a/queue_rss.py +++ b/queue_rss.py @@ -48,7 +48,7 @@ class Status: def utf2ascii(src): """ Return an ASCII encoded copy of the input UTF-8 string """ try: - res = unicode(src, 'utf-8').encode('ascii', 'replace') + res = unicode(src, 'utf-8').encode('ascii', 'replace') except UnicodeDecodeError: res = None return res @@ -57,7 +57,7 @@ def purge_old_items(feed, max): """ Purge RSSItem from feed, no more than max. """ if feed.items is None or len(feed.items) == 0: return False - + feed.items = feed.items[:max] return True @@ -115,7 +115,7 @@ def add_rss_item(status, msg, direction): feed.items.insert(0, PyRSS2Gen.RSSItem( - title, + title, pubDate = msg['Date'], # pubDate = now(), description = description, -- 2.39.5