Commit 014d3b4701d3c3eb9cfe3e68c159b9313faeda13

Authored by Christian Herdtweck
Committed by Philippe Lagadec
1 parent 7fedfd1d

ooxml: make compatible with python 3.6 (had only tested on 3.3)

Showing 1 changed file with 1 additions and 1 deletions
oletools/ooxml.py
... ... @@ -145,7 +145,7 @@ def iter_xml(filename, *args):
145 145 logging.debug(u'subfile {0}'.format(subfile))
146 146 depth = 0
147 147 try:
148   - with zip.open(subfile, 'rU') as handle:
  148 + with zip.open(subfile, 'r') as handle:
149 149 for event, elem in ET.iterparse(handle, ('start', 'end')):
150 150 if elem is None:
151 151 continue
... ...