commit | 24522982d000b7a7b15cd474466ddea1fca9e69a | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sat Apr 21 20:35:38 2007 +0000 |
committer | Georg Brandl <georg@python.org> | Sat Apr 21 20:35:38 2007 +0000 |
tree | bbcaed66489af44388a2d6279c91f89788fb3a62 | |
parent | 5d08bd7fb2e6475fb952cc5869a0e94eac602ef1 [diff] [blame] |
Bug #1704790: bind name "sys" locally in __del__ method so that it is not cleared before __del__ is run.
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 @@ 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