#6482: simplify "except: raise" to "finally:".

This commit is contained in:
Georg Brandl 2009-07-16 19:24:48 +00:00
parent a99dedfce2
commit 3601a38029
1 changed files with 2 additions and 2 deletions

View File

@ -1066,10 +1066,10 @@ class Popen(object):
gc.disable()
try:
self.pid = os.fork()
except:
finally:
if gc_was_enabled:
gc.enable()
raise
self._child_created = True
if self.pid == 0:
# Child