Commits

Anonymous committed 5cf33db

Darn. Fix stupid typo in whichmodule() backport.

  • Participants
  • Parent commits 0e6f0a2
  • Branches 2.2

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