Commit 94f4566e43ce985f1fe71dea87568c51ccd4d2d8
1 parent
b59e6361
ooxml: Remove unnecessary ensure_stdout_handles_unicode
log_helper does that for us
Showing
1 changed file
with
3 additions
and
4 deletions
oletools/ooxml.py
| ... | ... | @@ -690,12 +690,11 @@ class XmlParser(object): |
| 690 | 690 | |
| 691 | 691 | |
| 692 | 692 | def test(): |
| 693 | - """ Main function, called when running file as script | |
| 693 | + """ | |
| 694 | + Test xml parsing; called when running this file as a script. | |
| 694 | 695 | |
| 695 | - see module doc for more info | |
| 696 | + Prints every element found in input file (to be given as command line arg). | |
| 696 | 697 | """ |
| 697 | - from oletools.common.io_encoding import ensure_stdout_handles_unicode | |
| 698 | - ensure_stdout_handles_unicode() | |
| 699 | 698 | log_helper.enable_logging(False, 'debug') |
| 700 | 699 | if len(sys.argv) != 2: |
| 701 | 700 | print(u'To test this code, give me a single file as arg') | ... | ... |