fix xml parsing with python3
@@ -51,6 +51,9 @@ def tree_from_feed(feed_location, branch=None, name=None):
else:
raise Exception("Could not parse %s: Feed location is not an existing path nor an url" % feed_location)
tree = ElementTree.ElementTree()
+ if six.PY3:
+ tree.parse(fp, parser=ElementTree.XMLParser(encoding='utf-8'))
+ else:
tree.parse(fp)
except Exception as e:
if six.PY3:
