summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-07-16 19:24:48 (GMT)
committerGeorg Brandl <georg@python.org>2009-07-16 19:24:48 (GMT)
commit3601a38029265c6b594ba39ed4993debdd351e27 (patch)
tree606d3945e73360d442cd0cee8f35fbeef922cd84
parenta99dedfce29536ec156466b6846ef90dda46f1e2 (diff)
downloadcpython-3601a38029265c6b594ba39ed4993debdd351e27.zip
cpython-3601a38029265c6b594ba39ed4993debdd351e27.tar.gz
cpython-3601a38029265c6b594ba39ed4993debdd351e27.tar.bz2
#6482: simplify "except: raise" to "finally:".
-rw-r--r--Lib/subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 6b91f69..6d46529 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