Commit 6b5caf536e407eb1d09ee09271f9a8fe8663686b

Authored by Christian Herdtweck
Committed by Philippe Lagadec
1 parent d9da6184

ooxml: minor changes (doc strings, pep8, pylint)

Showing 1 changed file with 2 additions and 2 deletions
oletools/ooxml.py
... ... @@ -334,6 +334,8 @@ class XmlParser(object):
334 334 yields 3-tuples (filename, content_type, file_handle) where
335 335 content_type is based on filename or default for extension or is None,
336 336 and file_handle is a ZipSubFile
  337 +
  338 + To handle binary parts of an xlsb file, use xls_parser.parse_xlsb_part
337 339 """
338 340 if not self.did_iter_all:
339 341 logging.warning('Did not iterate through complete file. '
... ... @@ -369,8 +371,6 @@ def test():
369 371 if len(sys.argv) != 2:
370 372 print(u'To test this code, give me a single file as arg')
371 373 return 2
372   - #type = get_type(sys.argv[1])
373   - #print('content type is {0}'.format(type))
374 374 parser = XmlParser(sys.argv[1])
375 375 for subfile, elem, depth in parser.iter_xml():
376 376 print(u'{0}{1}{2}'.format(subfile, ' ' * depth, debug_str(elem)))
... ...