[Python-checkins] r77371 - python/trunk/Lib/test/test_urllib.py
senthil.kumaran
python-checkins at python.org
Fri Jan 8 20:20:25 CET 2010
Author: senthil.kumaran
Date: Fri Jan 8 20:20:25 2010
New Revision: 77371
Log:
Fix for Issue7026. For the Error - RuntimeError: dictionary changed size during iteration
Modified:
python/trunk/Lib/test/test_urllib.py
Modified: python/trunk/Lib/test/test_urllib.py
==============================================================================
--- python/trunk/Lib/test/test_urllib.py (original)
+++ python/trunk/Lib/test/test_urllib.py Fri Jan 8 20:20:25 2010
@@ -101,7 +101,7 @@
# 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)
More information about the Python-checkins
mailing list