Set stacklevel for all deprecation warnings
This commit is contained in:
parent
48daa042d1
commit
e255c35e86
5 changed files with 9 additions and 17 deletions
|
@ -309,7 +309,7 @@ class Grid(object):
|
|||
"""
|
||||
warnings.warn("Grid.hide_column() is deprecated; please use "
|
||||
"Grid.remove() instead.",
|
||||
DeprecationWarning)
|
||||
DeprecationWarning, stacklevel=2)
|
||||
self.remove(key)
|
||||
|
||||
def hide_columns(self, *keys):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue