From 24522982d000b7a7b15cd474466ddea1fca9e69a Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 21 Apr 2007 20:35:38 +0000 Subject: [PATCH] Bug #1704790: bind name "sys" locally in __del__ method so that it is not cleared before __del__ is run. --- Lib/subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 80a60b974f..11fc439649 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 -- 2.50.1