Browse files

Fixes #13288 -- removing escaping from the import script.

Escaping is handled by default with by Django.
  • Loading branch information...
1 parent 74eab7e commit ef33a0c7ac191d4c72f5aaf76e2595ec29b28799 @justinabrahms justinabrahms committed Feb 1, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 django_website/aggregator/management/commands/update_feeds.py
View
7 django_website/aggregator/management/commands/update_feeds.py
@@ -83,9 +83,9 @@ def update_feed(self, feed):
parsed_feed = feedparser.parse(feed.feed_url)
for entry in parsed_feed.entries:
# Parse out the entry, handling all the fun stuff that feeds can do.
- title = entry.title.encode(parsed_feed.encoding, "xmlcharrefreplace")
- guid = entry.get("id", entry.link).encode(parsed_feed.encoding, "xmlcharrefreplace")
- link = entry.link.encode(parsed_feed.encoding, "xmlcharrefreplace")
+ title = entry.title
+ guid = entry.get("id", entry.link)
+ link = entry.link
if not guid:
guid = link
@@ -98,7 +98,6 @@ def update_feed(self, feed):
content = entry.description
else:
content = u""
- content = content.encode(parsed_feed.encoding, "xmlcharrefreplace")
try:
if entry.has_key('modified_parsed'):

0 comments on commit ef33a0c

Please sign in to comment.