Commits

Ionel Cristian Mărieș committed c1a34fe

Changed stale check so it works with custom "Base" handler classes.

Comments (0)

Files changed (1)

             if not met:
                 continue
                 
-            stale = inspect.getmodule(met) is handler
+            stale = inspect.getmodule(met.im_func) is not inspect.getmodule(self.handler)
 
             if not self.handler.is_anonymous:
                 if met and (not stale or include_default):