diff --git a/oletools/ooxml.py b/oletools/ooxml.py index fd2e322..1b0c689 100644 --- a/oletools/ooxml.py +++ b/oletools/ooxml.py @@ -145,7 +145,7 @@ def iter_xml(filename, *args): logging.debug(u'subfile {0}'.format(subfile)) depth = 0 try: - with zip.open(subfile, 'rU') as handle: + with zip.open(subfile, 'r') as handle: for event, elem in ET.iterparse(handle, ('start', 'end')): if elem is None: continue