summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2019-06-17 21:26:00 -0400
committerGitHub <noreply@github.com>2019-06-17 21:26:00 -0400
commitb89c46a2f78811f334b24041228978e3944dc642 (patch)
treef4786ee6f2bb2be1228f369b7732435b624be11e
parent68fe449e4c50270bd7b904be6df0653fff54c5a8 (diff)
parent779bebc6d22efcd2f72ac355e4cc3f1c029a8603 (diff)
Make InkStitch run in Inkscape 1.0 alpha (#477)
Make InkStitch run in Inkscape 1.0 alpha
-rw-r--r--stub.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/stub.py b/stub.py
index 7c997524..c7ff5fa5 100644
--- a/stub.py
+++ b/stub.py
@@ -48,12 +48,12 @@ if sys.platform == "win32":
import msvcrt
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
-sys.stdout.write(stdout)
+sys.stdout.write(stdout.decode(sys.stdout.encoding))
sys.stdout.flush()
stderr = stderr.strip()
if stderr:
- sys.stderr.write(stderr.strip())
+ sys.stderr.write(stderr.decode(sys.stdout.encoding).strip())
sys.stderr.flush()
sys.exit(extension.returncode)