Use sys.stdout.buffer instead of sys.stdout
sys.stdout defaults to text mode, we need to use the underlying buffer instead when writing binary data. Signed-off-by: Chirantan Ekbote <chirantan.ekbote@gmail.com>pull/762/head
parent
f10b2a9c14
commit
1ee9778405
Loading…
Reference in New Issue