parent: Combine first stage imports
SSH command size: 443 (-5 bytes) Preamble size: 8962
This commit is contained in:
parent
48949cd249
commit
0336de6722
|
@ -326,7 +326,6 @@ class Stream(mitogen.core.Stream):
|
||||||
# Optimized for minimum byte count after minification & compression.
|
# Optimized for minimum byte count after minification & compression.
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _first_stage():
|
def _first_stage():
|
||||||
import os,sys
|
|
||||||
R,W=os.pipe()
|
R,W=os.pipe()
|
||||||
r,w=os.pipe()
|
r,w=os.pipe()
|
||||||
if os.fork():
|
if os.fork():
|
||||||
|
@ -361,7 +360,7 @@ class Stream(mitogen.core.Stream):
|
||||||
# same str (2.x) or an equivalent bytes (3.x).
|
# same str (2.x) or an equivalent bytes (3.x).
|
||||||
return [
|
return [
|
||||||
self.python_path, '-c',
|
self.python_path, '-c',
|
||||||
'import codecs;_=codecs.decode;'
|
'import codecs,os,sys;_=codecs.decode;'
|
||||||
'exec(_(_("%s".encode(),"base64"),"zip"))' % (encoded,)
|
'exec(_(_("%s".encode(),"base64"),"zip"))' % (encoded,)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue