summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-04-21 20:35:38 (GMT)
committerGeorg Brandl <georg@python.org>2007-04-21 20:35:38 (GMT)
commit24522982d000b7a7b15cd474466ddea1fca9e69a (patch)
treebbcaed66489af44388a2d6279c91f89788fb3a62 /Lib
parent5d08bd7fb2e6475fb952cc5869a0e94eac602ef1 (diff)
downloadcpython-24522982d000b7a7b15cd474466ddea1fca9e69a.zip
cpython-24522982d000b7a7b15cd474466ddea1fca9e69a.tar.gz
cpython-24522982d000b7a7b15cd474466ddea1fca9e69a.tar.bz2
Bug #1704790: bind name "sys" locally in __del__ method so that it is
not cleared before __del__ is run.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index 80a60b9..11fc439 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -628,7 +628,7 @@ class Popen(object):
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