Commits

Anonymous committed 5cf33db

Darn. Fix stupid typo in whichmodule() backport.

Comments (0)

Files changed (1)

     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():