From: W. Trevor King Date: Mon, 10 Dec 2012 23:13:40 +0000 (-0500) Subject: feed: fix the `type` key returned by Feed._get_entry_content X-Git-Tag: v3.0~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bb72663f1025c1b0f93bf84aeaa37fd6e687c7d2;p=rss2email.git feed: fix the `type` key returned by Feed._get_entry_content 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 --- diff --git a/rss2email/feed.py b/rss2email/feed.py index 60f00e4..2ec3e7d 100644 --- a/rss2email/feed.py +++ b/rss2email/feed.py @@ -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."