From 014d3b4701d3c3eb9cfe3e68c159b9313faeda13 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Thu, 23 Nov 2017 11:09:32 +0100 Subject: [PATCH] ooxml: make compatible with python 3.6 (had only tested on 3.3) --- oletools/ooxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- libgit2 0.21.4