Commit 740d6eb8 authored by Sidnei da Silva's avatar Sidnei da Silva

- Use stacklevel=2 to show calling site

parent 462dbb4e
......@@ -56,7 +56,7 @@ def upgradeException(t, v):
warnings.warn('String exceptions are deprecated starting '
'with Python 2.5 and will be removed in a '
'future release', DeprecationWarning)
'future release', DeprecationWarning, stacklevel=2)
n = None
if __builtins__.has_key(t):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment