[selectors] fix warning stack level
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 05 Jul 2010 18:25:25 +0200
changeset 5892 214633a80961
parent 5891 99024ad59223
child 5893 4469f85ace9f
[selectors] fix warning stack level
selectors.py
--- a/selectors.py	Mon Jul 05 18:25:19 2010 +0200
+++ b/selectors.py	Mon Jul 05 18:25:25 2010 +0200
@@ -678,7 +678,7 @@
         super(implements, self).__init__(**kwargs)
         self.expected_ifaces = expected_ifaces
         warn('[3.9] implements selector is deprecated, use either is_instance '
-             'or adaptable', DeprecationWarning, stacklevel=1)
+             'or adaptable', DeprecationWarning, stacklevel=2)
 
     def __str__(self):
         return '%s(%s)' % (self.__class__.__name__,