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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a43e865422a80e053c6a42eeb0de80a605e99d5;p=python 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 6eaefa234c..266853e8a9 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