#6482: simplify "except: raise" to "finally:".
This commit is contained in:
parent
a99dedfce2
commit
3601a38029
|
@ -1066,10 +1066,10 @@ class Popen(object):
|
||||||
gc.disable()
|
gc.disable()
|
||||||
try:
|
try:
|
||||||
self.pid = os.fork()
|
self.pid = os.fork()
|
||||||
except:
|
finally:
|
||||||
if gc_was_enabled:
|
if gc_was_enabled:
|
||||||
gc.enable()
|
gc.enable()
|
||||||
raise
|
|
||||||
self._child_created = True
|
self._child_created = True
|
||||||
if self.pid == 0:
|
if self.pid == 0:
|
||||||
# Child
|
# Child
|
||||||
|
|
Loading…
Reference in New Issue