Skip to content

Commit

Permalink
Merged Philippe Lagadec's branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bontchev committed Jun 5, 2019
1 parent 1173b84 commit d8da36a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pcodedmp/pcodedmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from oletools.common import codepages

PYTHON2 = sys.version_info[0] < 3
codec = 'latin1' # Assume 'latin1' unless redefined by the XLS file
codec = 'latin1' # Assume 'latin1' unless redefined by the 'dir' stream
if PYTHON2:
def decode(x):
return x.decode(codec, errors='replace').encode('utf-8')
Expand Down Expand Up @@ -1171,7 +1171,6 @@ def processProject(vbaParser, args, output_file = sys.stdout):
if vbaProjects is None:
return
if output_file.isatty():
# print('enabling win_unicode_console', file=sys.stderr)
win_unicode_console.enable()
for vbaRoot, projectPath, dirPath in vbaProjects:
print('=' * 79, file=output_file)
Expand Down Expand Up @@ -1205,7 +1204,6 @@ def processProject(vbaParser, args, output_file = sys.stdout):
print ('{} - {:d} bytes'.format(modulePath, len(moduleData)), file=output_file)
pcodeDump(moduleData, vbaProjectData, dirData, identifiers, is64bit, args, output_file=output_file)
if output_file.isatty():
# print('disabling win_unicode_console', file=sys.stderr)
win_unicode_console.disable()
except Exception as e:
print('Error: {}.'.format(e), file=sys.stderr)
Expand Down

0 comments on commit d8da36a

Please sign in to comment.