Skip to content

Commit

Permalink
Merge branch 'mnt_warning_level' into devel
Browse files Browse the repository at this point in the history
- closes tqdm#821
  • Loading branch information
casperdcl committed Oct 12, 2019
2 parents 1db4511 + fa2e30f commit 45f0785
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tqdm/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from warnings import warn
warn("This function will be removed in tqdm==5.0.0\n"
"Please use `tqdm.cli.*` instead of `tqdm._main.*`",
TqdmDeprecationWarning)
TqdmDeprecationWarning, stacklevel=2)
2 changes: 1 addition & 1 deletion tqdm/_tqdm_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from warnings import warn
warn("This function will be removed in tqdm==5.0.0\n"
"Please use `tqdm.gui.*` instead of `tqdm._tqdm_gui.*`",
TqdmDeprecationWarning)
TqdmDeprecationWarning, stacklevel=2)
2 changes: 1 addition & 1 deletion tqdm/_tqdm_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from warnings import warn
warn("This function will be removed in tqdm==5.0.0\n"
"Please use `tqdm.notebook.*` instead of `tqdm._tqdm_notebook.*`",
TqdmDeprecationWarning)
TqdmDeprecationWarning, stacklevel=2)
2 changes: 1 addition & 1 deletion tqdm/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from warnings import warn
warn("This function will be removed in tqdm==5.0.0\n"
"Please use `tqdm.utils.*` instead of `tqdm._utils.*`",
TqdmDeprecationWarning)
TqdmDeprecationWarning, stacklevel=2)

0 comments on commit 45f0785

Please sign in to comment.