From 545652c34fc4be655cff7855589d5f35aab05eb4 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Tue, 6 Mar 2018 21:39:59 +0000 Subject: [PATCH] parent: Trim whitespace & e variable in first stage SSH command size: 439 (-4 bytes) Preamble size: 8962 (no change) --- mitogen/parent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mitogen/parent.py b/mitogen/parent.py index 4502f186..d5d084ba 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -336,10 +336,10 @@ class Stream(mitogen.core.Stream): os.close(r) os.close(W) os.close(w) - os.environ['ARGV0']=e=sys.executable - os.execv(e,['mitogen:CONTEXT_NAME']) + os.environ['ARGV0']=sys.executable + os.execv(sys.executable,['mitogen:CONTEXT_NAME']) os.write(1,'EC0\n') - C=_(sys.stdin.read(PREAMBLE_COMPRESSED_LEN), 'zip') + C=_(sys.stdin.read(PREAMBLE_COMPRESSED_LEN),'zip') os.fdopen(W,'w',0).write(C) os.fdopen(w,'w',0).write('PREAMBLE_LEN\n'+C) os.write(1,'EC1\n')