Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Escaping is handled by default with by Django.
  • Loading branch information...
commit ef33a0c7ac191d4c72f5aaf76e2595ec29b28799 1 parent 74eab7e
Justin Abrahms justinabrahms authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 django_website/aggregator/management/commands/update_feeds.py
7 django_website/aggregator/management/commands/update_feeds.py
View
@@ -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'):
Please sign in to comment.
Something went wrong with that request. Please try again.