From: Georg Brandl Date: Thu, 16 Jul 2009 19:24:48 +0000 (+0000) Subject: #6482: simplify "except: raise" to "finally:". X-Git-Tag: v2.7a1~762 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3601a38029265c6b594ba39ed4993debdd351e27;p=python #6482: simplify "except: raise" to "finally:". --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 6b91f69f8c..6d4652981c 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -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