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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3601a38029265c6b594ba39ed4993debdd351e27;p=thirdparty%2FPython%2Fcpython.git #6482: simplify "except: raise" to "finally:". --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 6b91f69f8caf..6d4652981c82 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