backward-compatibility

This commit is contained in:
Casper da Costa-Luis 2019-08-26 15:50:02 +01:00
parent 06d3310fff
commit 49471d3b43
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
5 changed files with 40 additions and 0 deletions

7
tqdm/_main.py Normal file
View File

@ -0,0 +1,7 @@
from .main import * # NOQA
from .main import __all__ # NOQA
from .std import TqdmDeprecationWarning
from warnings import warn
warn("This function will be removed in tqdm==5.0.0\n"
"Please use `tqdm.main.*` instead of `tqdm._main.*`",
TqdmDeprecationWarning)

7
tqdm/_tqdm.py Normal file
View File

@ -0,0 +1,7 @@
from .std import * # NOQA
from .std import __all__ # NOQA
from .std import TqdmDeprecationWarning
from warnings import warn
warn("This function will be removed in tqdm==5.0.0\n"
"Please use `tqdm.std.*` instead of `tqdm._tqdm.*`",
TqdmDeprecationWarning)

7
tqdm/_tqdm_gui.py Normal file
View File

@ -0,0 +1,7 @@
from .gui import * # NOQA
from .gui import __all__ # NOQA
from .std import TqdmDeprecationWarning
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)

7
tqdm/_tqdm_notebook.py Normal file
View File

@ -0,0 +1,7 @@
from .notebook import * # NOQA
from .notebook import __all__ # NOQA
from .std import TqdmDeprecationWarning
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)

12
tqdm/_utils.py Normal file
View File

@ -0,0 +1,12 @@
from .utils import CUR_OS, IS_WIN, IS_NIX, RE_ANSI, \
_range, _unich, _unicode, colorama, WeakSet, _basestring, _OrderedDict, \
FormatReplace, Comparable, SimpleTextIOWrapper, _is_utf, \
_supports_unicode, _is_ascii, _environ_cols_wrapper, \
_environ_cols_windows, _environ_cols_tput, _environ_cols_linux, \
_term_move_up
from .std import TqdmDeprecationWarning
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)