[Python-checkins] r54919 - python/branches/release25-maint/Lib/subprocess.py

georg.brandl python-checkins at python.org
Sat Apr 21 22:35:51 CEST 2007


Author: georg.brandl
Date: Sat Apr 21 22:35:49 2007
New Revision: 54919

Modified:
   python/branches/release25-maint/Lib/subprocess.py
Log:
Bug #1704790: bind name "sys" locally in __del__ method so that it is
not cleared before __del__ is run.
 (backport from rev. 54918)

Modified: python/branches/release25-maint/Lib/subprocess.py
==============================================================================
--- python/branches/release25-maint/Lib/subprocess.py	(original)
+++ python/branches/release25-maint/Lib/subprocess.py	Sat Apr 21 22:35:49 2007
@@ -628,7 +628,7 @@
         return data
 
 
-    def __del__(self):
+    def __del__(self, sys=sys):
         if not self._child_created:
             # We didn't get to successfully create a child process.
             return


More information about the Python-checkins mailing list