summaryrefslogtreecommitdiff
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-11-29 17:14:27 +0100
committerÉric Araujo <merwok@netwok.org>2011-11-29 17:14:27 +0100
commitc8e032006a608f14f9463f06f4d466fd367b37f3 (patch)
treefeb41266b17d36bf1f47c438db5cac11eb696d16 /Lib/inspect.py
parentaa35b0032235b6b935da0f08f79bba7296ced5fc (diff)
parenta74f8ef419d2c7c5f398a80165f8d8fd5e4d7b8e (diff)
downloadcpython-git-c8e032006a608f14f9463f06f4d466fd367b37f3.tar.gz
Merge 3.2
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 9898b114aa..c0b67a3f00 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -482,7 +482,7 @@ def getmodule(object, _filename=None):
return sys.modules.get(modulesbyfile[file])
# Update the filename to module name cache and check yet again
# Copy sys.modules in order to cope with changes while iterating
- for modname, module in sys.modules.items():
+ for modname, module in list(sys.modules.items()):
if ismodule(module) and hasattr(module, '__file__'):
f = module.__file__
if f == _filesbymodname.get(modname, None):