Use sys.stdout.buffer to be able to write bytes (for Python 3 compat)

This commit is contained in:
Florian Festi 2017-02-25 19:59:53 +01:00
parent cb8ebefeb1
commit 41bc4d028f
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ class Boxes:
self.formats.convert(self.output, self.format) self.formats.convert(self.output, self.format)
if self.inkscapefile: if self.inkscapefile:
svgutil.svgMerge(self.output, self.inkscapefile, sys.stdout) svgutil.svgMerge(self.output, self.inkscapefile, sys.stdout.buffer)
############################################################ ############################################################
### Turtle graphics commands ### Turtle graphics commands