From 94f4566e43ce985f1fe71dea87568c51ccd4d2d8 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Tue, 16 Jul 2019 10:25:02 +0200 Subject: [PATCH] ooxml: Remove unnecessary ensure_stdout_handles_unicode --- oletools/ooxml.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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') -- libgit2 0.21.4