Alexander Belopolsky added the comment:
Small comment on the patch:
def clear(self):
- for key in self.data.keys():
+ for key in self.keys():
unsetenv(key)
- del self.data[key]
+ del self[key]
It looks like the patched version will unsetenv twice, Change
del self[key]
to
dict.__delitem__(self, key)
+1
----------
nosy: +belopolsky
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2144>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com