Commit 80d7231288482349b0dc39e4c994aaedbf314a90

Authored by Samir Aguiar
1 parent e860d4fe

ooxml: fix test() function

The enumerate() function returns a 2-tuple with the second
element being a 3-tuple.
Showing 1 changed file with 1 additions and 1 deletions
oletools/ooxml.py
... ... @@ -641,7 +641,7 @@ def test():
641 641 for subfile, elem, depth in parser.iter_xml():
642 642 if depth < 4:
643 643 print(u'{0} {1}{2}'.format(subfile, ' ' * depth, debug_str(elem)))
644   - for index, (subfile, content_type) in enumerate(parser.iter_non_xml()):
  644 + for index, (subfile, content_type, _) in enumerate(parser.iter_non_xml()):
645 645 print(u'Non-XML subfile: {0} of type {1}'
646 646 .format(subfile, content_type or u'unknown'))
647 647 if index > 100:
... ...