Commit 24522982 authored by Georg Brandl's avatar Georg Brandl

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

not cleared before __del__ is run.
parent 5d08bd7f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment