]> granicus.if.org Git - python/commitdiff
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch...
authorSenthil Kumaran <orsenthil@gmail.com>
Fri, 8 Jan 2010 18:25:42 +0000 (18:25 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Fri, 8 Jan 2010 18:25:42 +0000 (18:25 +0000)
Lib/test/test_urllib.py

index 5f9744c4512f221f401a628484a1b7de724585a3..fd9c36150ebedbbeda31ffcd726691c091eb195b 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)