From: Guido van Rossum Date: Mon, 7 Oct 2002 13:18:23 +0000 (+0000) Subject: Darn. Fix stupid typo in whichmodule() backport. X-Git-Tag: v2.2.2b1~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=536f3eae4d0c683d633e6695837dcc931111530d;p=thirdparty%2FPython%2Fcpython.git Darn. Fix stupid typo in whichmodule() backport. --- diff --git a/Lib/pickle.py b/Lib/pickle.py index 7f2638541292..83ec1122989b 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -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():