From d1c10f64a5b0efab7762b80183748dfa527870e6 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 18 Oct 2017 00:22:56 +0100 Subject: [PATCH] first stage: Use string concatenation --- mitogen/master.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/master.py b/mitogen/master.py index 972f4c87..46a1153c 100644 --- a/mitogen/master.py +++ b/mitogen/master.py @@ -718,7 +718,7 @@ class Stream(mitogen.core.Stream): os.write(1,'EC0\n') C=zlib.decompress(sys.stdin.read(input())) os.fdopen(W,'w',0).write(C) - os.fdopen(w,'w',0).write('%s\n%s'%(len(C),C)) + os.fdopen(w,'w',0).write('%s\n'%len(C)+C) os.write(1,'EC1\n') sys.exit(0)