fix warning stack level
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 20 Jan 2010 11:23:27 +0100
changeset 4284 8e5dcb54fd8e
parent 4283 b3c40ae2d045
child 4288 1c85c916fa13
fix warning stack level
web/views/forms.py
--- a/web/views/forms.py	Wed Jan 20 11:23:18 2010 +0100
+++ b/web/views/forms.py	Wed Jan 20 11:23:27 2010 +0100
@@ -135,7 +135,7 @@
         """
         if rendervalues is not None:
             warn('[3.6] rendervalues argument is deprecated, all named arguments will be given instead',
-                 DeprecationWarning, stacklevel=1)
+                 DeprecationWarning, stacklevel=2)
             kwargs = rendervalues
         self.build_context(formvalues)
         if renderer is None: