first stage: Remove/dedent else block

Since the above if block ends in a call to os.execv() this block will
only ever run when the if condition was false. Hence putting it in an
else clause is unnecessary.
wip-fakessh-exit-status
Alex Willmer 7 years ago committed by David Wilson
parent d1c10f64a5
commit 0e7cc55e33

@ -714,7 +714,6 @@ class Stream(mitogen.core.Stream):
for f in R,r,W,w:os.close(f) for f in R,r,W,w:os.close(f)
os.environ['ARGV0']=e=sys.executable os.environ['ARGV0']=e=sys.executable
os.execv(e,['mitogen:CONTEXT_NAME']) os.execv(e,['mitogen:CONTEXT_NAME'])
else:
os.write(1,'EC0\n') os.write(1,'EC0\n')
C=zlib.decompress(sys.stdin.read(input())) C=zlib.decompress(sys.stdin.read(input()))
os.fdopen(W,'w',0).write(C) os.fdopen(W,'w',0).write(C)

Loading…
Cancel
Save