[Python-checkins] r74028 - python/trunk/Lib/subprocess.py

georg.brandl python-checkins at python.org
Thu Jul 16 21:24:53 CEST 2009


Author: georg.brandl
Date: Thu Jul 16 21:24:48 2009
New Revision: 74028

Log:
#6482: simplify "except: raise" to "finally:".

Modified:
   python/trunk/Lib/subprocess.py

Modified: python/trunk/Lib/subprocess.py
==============================================================================
--- python/trunk/Lib/subprocess.py	(original)
+++ python/trunk/Lib/subprocess.py	Thu Jul 16 21:24:48 2009
@@ -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


More information about the Python-checkins mailing list