From: Senthil Kumaran Date: Thu, 1 Oct 2009 01:19:18 +0000 (+0000) Subject: using dict.unset(k) instead of del dict[k]. consistent with release26-maint X-Git-Tag: v2.7a1~434 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a43e865422a80e053c6a42eeb0de80a605e99d5;p=thirdparty%2FPython%2Fcpython.git using dict.unset(k) instead of del dict[k]. consistent with release26-maint --- diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py index 6eaefa234c01..266853e8a943 100644 --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -103,7 +103,7 @@ class ProxyTests(unittest.TestCase): # Delete all proxy related env vars for k, v in os.environ.iteritems(): if 'proxy' in k.lower(): - del self.env[k] + env.unset(k) def tearDown(self): # Restore all proxy related env vars