]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Darn. Fix stupid typo in whichmodule() backport.
authorGuido van Rossum <guido@python.org>
Mon, 7 Oct 2002 13:18:23 +0000 (13:18 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 7 Oct 2002 13:18:23 +0000 (13:18 +0000)
Lib/pickle.py

index 7f26385412925db2a745cca22c64166d0132dd75..83ec1122989bee6aabf6e0a9647bd840dacc6a48 100644 (file)
@@ -562,7 +562,7 @@ def whichmodule(func, funcname):
     Return a module name.
     If the function cannot be found, return __main__.
     """
-    if classmap.has_key(classmap):
+    if classmap.has_key(func):
         return classmap[func]
 
     for name, module in sys.modules.items():