diff options
author | Georg Brandl <georg@python.org> | 2007-04-21 20:35:38 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-04-21 20:35:38 (GMT) |
commit | 24522982d000b7a7b15cd474466ddea1fca9e69a (patch) | |
tree | bbcaed66489af44388a2d6279c91f89788fb3a62 | |
parent | 5d08bd7fb2e6475fb952cc5869a0e94eac602ef1 (diff) | |
download | cpython-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.
-rw-r--r-- | Lib/subprocess.py | 2 |
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 |