Use sys.stdout.buffer to be able to write bytes (for Python 3 compat)
This commit is contained in:
parent
cb8ebefeb1
commit
41bc4d028f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue