diff --git a/oletools/ooxml.py b/oletools/ooxml.py index e805bf8..2d5effa 100644 --- a/oletools/ooxml.py +++ b/oletools/ooxml.py @@ -690,12 +690,11 @@ class XmlParser(object): def test(): - """ Main function, called when running file as script + """ + Test xml parsing; called when running this file as a script. - see module doc for more info + Prints every element found in input file (to be given as command line arg). """ - from oletools.common.io_encoding import ensure_stdout_handles_unicode - ensure_stdout_handles_unicode() log_helper.enable_logging(False, 'debug') if len(sys.argv) != 2: print(u'To test this code, give me a single file as arg')