Hopefully fix RSS feeds for items with non-ascii
authorMagnus Hagander <magnus@hagander.net>
Wed, 11 Feb 2015 19:17:28 +0000 (20:17 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 11 Feb 2015 19:17:28 +0000 (20:17 +0100)
pgcommitfest/commitfest/feeds.py

index dc37924ebb66ac0dc64274898d0a0056f69f5e53..025ddef60722ae1f75d1ac448f8fdcb127770a70 100644 (file)
@@ -20,13 +20,13 @@ class ActivityFeed(Feed):
                if self.cfid:
                        return item['name']
                else:
-                       return '{cfname}: {name}'.format(**item)
+                       return u'{cfname}: {name}'.format(**item)
 
        def item_description(self, item):
                if self.cfid:
-                       return "<div>Patch: {name}</div><div>User: {by}</div>\n<div>{what}</div>".format(**item)
+                       return u"<div>Patch: {name}</div><div>User: {by}</div>\n<div>{what}</div>".format(**item)
                else:
-                       return "<div>Commitfest: {cfname}</div><div>Patch: {name}</div><div>User: {by}</div><div>{what}</div>".format(**item)
+                       return u"<div>Commitfest: {cfname}</div><div>Patch: {name}</div><div>User: {by}</div><div>{what}</div>".format(**item)
 
        def item_link(self, item):
                if self.cfid: