From 85f36f4cb16d1159d0d7e638973647045fdad45a Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Tue, 6 Mar 2018 03:01:02 +0000 Subject: [PATCH] parent: Prefer "import foo;x=foo" in first stage SSH command size: 481 (down 1) Preamble size: 8946 (no change) --- mitogen/parent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/parent.py b/mitogen/parent.py index 10ff7dee..e4b8d888 100644 --- a/mitogen/parent.py +++ b/mitogen/parent.py @@ -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,) ]