fix class reference in old hook warning
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 07 Dec 2009 17:16:55 +0100
changeset 4008 fce83937a885
parent 3998 94cc7cad3d2d
child 4009 fa4189f2cf98
fix class reference in old hook warning
server/hook.py
--- a/server/hook.py	Thu Dec 03 17:17:43 2009 +0100
+++ b/server/hook.py	Mon Dec 07 17:16:55 2009 +0100
@@ -82,7 +82,7 @@
             if hook.enabled:
                 hook()
             else:
-                warn('[3.6] %s: enabled is deprecated' % cls)
+                warn('[3.6] %s: enabled is deprecated' % self.__class__)
 
 VRegistry.REGISTRY_FACTORY['hooks'] = HooksRegistry