Commit 6e4d05b57f6c3796595e44217ced5ecfe8d8704e

Authored by Christian Herdtweck
1 parent 9dfa0bc2

ooxml: Fix attempt to copy args

Not sure whether this copying is necessary at all...
Showing 1 changed file with 3 additions and 1 deletions
oletools/ooxml.py
@@ -445,7 +445,9 @@ class XmlParser(object): @@ -445,7 +445,9 @@ class XmlParser(object):
445 elif isstr(args): 445 elif isstr(args):
446 subfiles = [args, ] 446 subfiles = [args, ]
447 else: 447 else:
448 - subfiles = tuple(args) # make a copy in case orig changes 448 + # make a copy in case original args are modified
  449 + # Not sure whether this really is needed...
  450 + subfiles = tuple(arg for arg in args)
449 451
450 for subfile in subfiles: 452 for subfile in subfiles:
451 with zipper.open(subfile, 'r') as handle: 453 with zipper.open(subfile, 'r') as handle: