Update fcinfo script for py3 compatibility

This commit is contained in:
Mitch Roote
2020-12-15 11:10:40 -05:00
parent 5bccc5c588
commit ea5d2efabe

View File

@@ -174,7 +174,7 @@ class FreeCADFileHandler(xml.sax.ContentHandler):
# Print all the contents of the document properties
items = self.contents.items()
items.sort()
items = sorted(items)
for key,value in items:
key = self.clean(key)
value = self.clean(value)
@@ -186,7 +186,7 @@ class FreeCADFileHandler(xml.sax.ContentHandler):
if (tag == "Document") and (self.short != 2):
items = self.contents.items()
items.sort()
items = sorted(items)
for key,value in items:
key = self.clean(key)
if "00000000::" in key: