From b89910b5ab21c725207785cfb2ddb10711591c22 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Thu, 23 Nov 2017 11:00:40 +0100 Subject: [PATCH] ooxml: Make compatible with python3 --- oletools/ooxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/ooxml.py b/oletools/ooxml.py index a8dd0ff..fd2e322 100644 --- a/oletools/ooxml.py +++ b/oletools/ooxml.py @@ -68,7 +68,7 @@ def debug_str(elem): parts.append(u'text="{0}"'.format(elem.text)) if elem.tail: parts.append(u'tail="{0}"'.format(elem.tail)) - for key, value in elem.attrib.iteritems(): + for key, value in elem.attrib.items(): parts.append(u'{0}="{1}"'.format(key, value)) if key == 'ContentType': if value.startswith(CONTENT_TYPES_EXCEL): -- libgit2 0.21.4