We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b408f commit 7614561Copy full SHA for 7614561
odml/tools/version_converter.py
@@ -53,7 +53,8 @@ def _parse_xml(self):
53
doc = doc.replace(elem, val)
54
55
# Make sure encoding is present for the xml parser
56
- doc = doc.encode('utf-8')
+ if sys.version_info.major > 2:
57
+ doc = doc.encode('utf-8')
58
59
# Make pretty print available by resetting format
60
parser = ET.XMLParser(remove_blank_text=True)
0 commit comments