]> git.decadent.org.uk Git - dak.git/commitdiff
again, trailing whitespaces removed
authorFilippo Giunchedi <filippo@esaurito.net>
Sun, 30 Nov 2008 10:42:14 +0000 (11:42 +0100)
committerFilippo Giunchedi <filippo@esaurito.net>
Sun, 30 Nov 2008 10:42:14 +0000 (11:42 +0100)
queue_rss.py

index 9ca66abbe435ad9654c64a37477bc029bdf10f2e..6e5c240721e3fe73f84866861877fce4b7c2bb09 100755 (executable)
@@ -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,