From 41bc4d028f6b1927ccf34a2a9da48550557be7ab Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 25 Feb 2017 19:59:53 +0100 Subject: [PATCH] Use sys.stdout.buffer to be able to write bytes (for Python 3 compat) --- boxes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index 07987f6..c8b4cef 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -506,7 +506,7 @@ class Boxes: self.formats.convert(self.output, self.format) if self.inkscapefile: - svgutil.svgMerge(self.output, self.inkscapefile, sys.stdout) + svgutil.svgMerge(self.output, self.inkscapefile, sys.stdout.buffer) ############################################################ ### Turtle graphics commands