Kaydet (Commit) 3601a380 authored tarafından Georg Brandl's avatar Georg Brandl

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

üst a99dedfc
...@@ -1066,10 +1066,10 @@ class Popen(object): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment