ease location of the pb in the warning tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 05 May 2009 18:05:24 +0200
branchtls-sprint
changeset 1694 d7990e3478b2
parent 1692 56009f2101fe
child 1695 9a9822f3cb6c
ease location of the pb in the warning
selectors.py
--- a/selectors.py	Tue May 05 17:26:21 2009 +0200
+++ b/selectors.py	Tue May 05 18:05:24 2009 +0200
@@ -1111,7 +1111,8 @@
     def plug_selector(cls, vreg):
         cls = registered(cls, vreg)
         if getattr(cls, 'accepts', None):
-            warn('use "implements("EntityType", IFace)" instead of using accepts',
+            warn('use "implements("EntityType", IFace)" instead of using accepts on %s'
+                 % cls,
                  DeprecationWarning)
             cls.__select__ &= implements(*cls.accepts)
         return cls