fix stacklevel
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 07 Jul 2009 11:38:35 +0200
changeset 2302 e0393451e9a5
parent 2301 a9e9582d5fb6
child 2303 ea86d250cca9
fix stacklevel
vregistry.py
--- a/vregistry.py	Tue Jul 07 11:38:25 2009 +0200
+++ b/vregistry.py	Tue Jul 07 11:38:35 2009 +0200
@@ -229,7 +229,7 @@
         """
         if len(args) > 1:
             warn('only the request param can not be named when calling select',
-                 DeprecationWarning, stacklevel=2)
+                 DeprecationWarning, stacklevel=3)
         score, winners = 0, []
         for vobject in vobjects:
             vobjectscore = vobject.__select__(vobject, *args, **kwargs)