Skip to content

Commit 72cf498

Browse files
authored
Merge pull request #10 from hpolloni/master
Fix exceptions when outputting to sys.stdout
2 parents dd70390 + 31110c2 commit 72cf498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shellnoob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def do_conversion(self, input_fp, output_fp, input_fmt, output_fmt):
533533
_output = cbytes(_output)
534534
# writing the output
535535
if output_fp == '-':
536-
sys.stdout.write(_output)
536+
sys.stdout.write(_output.decode(sys.stdout.encoding))
537537
else:
538538
open(output_fp, 'wb').write(_output)
539539

0 commit comments

Comments
 (0)