Commit eb69c4bbf5e2dd624f0f3e428f008d2db5bdcd9d

Authored by decalage2
1 parent d6c13bf7

olevba: fixed bug in open_word2003xml (ElementTree getiterator not supported anymore)

Showing 1 changed file with 1 additions and 1 deletions
oletools/olevba.py
... ... @@ -2931,7 +2931,7 @@ class VBA_Parser(object):
2931 2931 # TODO: handle XML parsing exceptions
2932 2932 et = ET.fromstring(data)
2933 2933 # find all the binData elements:
2934   - for bindata in et.getiterator(TAG_BINDATA):
  2934 + for bindata in et.iter(TAG_BINDATA):
2935 2935 # the binData content is an OLE container for the VBA project, compressed
2936 2936 # using the ActiveMime/MSO format (zlib-compressed), and Base64 encoded.
2937 2937 # get the filename:
... ...