feed: fix the `type` key returned by Feed._get_entry_content
authorW. Trevor King <wking@tremily.us>
Mon, 10 Dec 2012 23:13:40 +0000 (18:13 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 11 Dec 2012 01:05:50 +0000 (20:05 -0500)
The previous version used the Python object `type` where it should
have used the string 'type'.  I hadn't caught the bug before because
none of my example feeds fell through that far.

Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/feed.py

index 60f00e49a7ebb74a253078e1567409fe6e9b6cd6..2ec3e7dc859d53831b2bcb8471a421399e059f60 100644 (file)
@@ -630,7 +630,7 @@ class Feed (object):
                     return content
         if contents:
             return contents[0]
-        return {type: 'text/plain', 'value': ''}
+        return {'type': 'text/plain', 'value': ''}
 
     def _process_entry_content(self, entry, content, link, subject):
         "Convert entry content to the requested format."