commit | 3601a38029265c6b594ba39ed4993debdd351e27 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Thu Jul 16 19:24:48 2009 +0000 |
committer | Georg Brandl <georg@python.org> | Thu Jul 16 19:24:48 2009 +0000 |
tree | 606d3945e73360d442cd0cee8f35fbeef922cd84 | |
parent | a99dedfce29536ec156466b6846ef90dda46f1e2 [diff] [blame] |
#6482: simplify "except: raise" to "finally:".
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 @@ 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