Commit b89910b5ab21c725207785cfb2ddb10711591c22
Committed by
Philippe Lagadec
1 parent
d055af42
ooxml: Make compatible with python3
Showing
1 changed file
with
1 additions
and
1 deletions
oletools/ooxml.py
| ... | ... | @@ -68,7 +68,7 @@ def debug_str(elem): |
| 68 | 68 | parts.append(u'text="{0}"'.format(elem.text)) |
| 69 | 69 | if elem.tail: |
| 70 | 70 | parts.append(u'tail="{0}"'.format(elem.tail)) |
| 71 | - for key, value in elem.attrib.iteritems(): | |
| 71 | + for key, value in elem.attrib.items(): | |
| 72 | 72 | parts.append(u'{0}="{1}"'.format(key, value)) |
| 73 | 73 | if key == 'ContentType': |
| 74 | 74 | if value.startswith(CONTENT_TYPES_EXCEL): | ... | ... |