parent: Prefer "import foo;x=foo" in first stage

SSH command size: 481 (down 1)
Preamble size: 8946 (no change)
wip-fakessh-exit-status
Alex Willmer 7 years ago committed by David Wilson
parent f999b9adbf
commit 85f36f4cb1

@ -353,7 +353,7 @@ class Stream(mitogen.core.Stream):
# same str (2.x) or an equivalent bytes (3.x).
return [
self.python_path, '-c',
'from codecs import decode as _;'
'import codecs;_=codecs.decode;'
'exec(_(_("%s".encode(),"base64"),"zlib"))' % (encoded,)
]

Loading…
Cancel
Save