[Python-3000-checkins] r53930 - python/branches/p3yk/Lib/pickle.py
guido.van.rossum
python-3000-checkins at python.org
Mon Feb 26 08:07:09 CET 2007
Author: guido.van.rossum
Date: Mon Feb 26 08:07:02 2007
New Revision: 53930
Modified:
python/branches/p3yk/Lib/pickle.py
Log:
Fix a bizarre error where test_pickletools fails if preceded by test_pyclbr.
The fix is in neither, but in pickle.py where a loop over sys.modules.items()
could modify sys.modules, occasionally.
Modified: python/branches/p3yk/Lib/pickle.py
==============================================================================
--- python/branches/p3yk/Lib/pickle.py (original)
+++ python/branches/p3yk/Lib/pickle.py Mon Feb 26 08:07:02 2007
@@ -791,7 +791,7 @@
if func in classmap:
return classmap[func]
- for name, module in sys.modules.items():
+ for name, module in list(sys.modules.items()):
if module is None:
continue # skip dummy package entries
if name != '__main__' and getattr(module, funcname, None) is func:
More information about the Python-3000-checkins
mailing list