From 3601a38029265c6b594ba39ed4993debdd351e27 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 16 Jul 2009 19:24:48 +0000 Subject: [PATCH] #6482: simplify "except: raise" to "finally:". --- Lib/subprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.50.1