Merge pull request #4148 from mroote/update_fcinfo_py3

Update fcinfo script for py3 compatibility
This commit is contained in:
Yorik van Havre
2020-12-16 11:49:00 +01:00
committed by GitHub

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: