]> granicus.if.org Git - python/commitdiff
Fix for Issue7026. For the Error - RuntimeError: dictionary changed size during iteration
authorSenthil Kumaran <orsenthil@gmail.com>
Fri, 8 Jan 2010 19:20:25 +0000 (19:20 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Fri, 8 Jan 2010 19:20:25 +0000 (19:20 +0000)
Lib/test/test_urllib.py

index c74b101713c9d90990450f3b7a5b53759c141d3b..8d41bf089dc72b4453a15a4b052373007a0150b2 100644 (file)
@@ -101,7 +101,7 @@ class ProxyTests(unittest.TestCase):
         # Records changes to env vars
         self.env = test_support.EnvironmentVarGuard()
         # Delete all proxy related env vars
-        for k, v in os.environ.iteritems():
+        for k in os.environ.keys():
             if 'proxy' in k.lower():
                 self.env.unset(k)