Update fcinfo script for py3 compatibility
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user