]> granicus.if.org Git - python/commitdiff
#6482: simplify "except: raise" to "finally:".
authorGeorg Brandl <georg@python.org>
Thu, 16 Jul 2009 19:24:48 +0000 (19:24 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 16 Jul 2009 19:24:48 +0000 (19:24 +0000)
Lib/subprocess.py

index 6b91f69f8caff379a2454f9c8406d27c1b060a00..6d4652981c82149d99c896c38bb8f85f34ce9038 100644 (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