feeds: no need to decode xml strings
It event makes python3 lxml get angry
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user