diff options
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index db7f512..3d2ebd2 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -791,7 +791,7 @@ def whichmodule(func, funcname): 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: |