# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1241539524 -7200 # Node ID d7990e3478b27d1c7a98349c7a4a9f001a28bf9f # Parent 56009f2101fe007315ce3d30fbbf3151b2107f35 ease location of the pb in the warning diff -r 56009f2101fe -r d7990e3478b2 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