feeds: no need to decode xml strings

It event makes python3 lxml get angry
master
pictuga 2015-04-06 22:37:33 +08:00
parent 1335b3fdda
commit 88af80e817
1 changed files with 0 additions and 5 deletions

View File

@ -89,11 +89,6 @@ class FeedException(Exception):
def parse(data):
# encoding
if isinstance(data, bytes):
enc = crawler.detect_encoding(data)
data = data.decode(enc, 'replace')
# parse
parser = etree.XMLParser(recover=True)
doc = etree.fromstring(data, parser)