Bug #1704790: bind name "sys" locally in __del__ method so that it is

not cleared before __del__ is run.
This commit is contained in:
Georg Brandl 2007-04-21 20:35:38 +00:00
parent 5d08bd7fb2
commit 24522982d0

View file

@ -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