From 49471d3b437a8ec5fddbef78cdd02af4da417937 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Mon, 26 Aug 2019 15:50:02 +0100 Subject: [PATCH] backward-compatibility --- tqdm/_main.py | 7 +++++++ tqdm/_tqdm.py | 7 +++++++ tqdm/_tqdm_gui.py | 7 +++++++ tqdm/_tqdm_notebook.py | 7 +++++++ tqdm/_utils.py | 12 ++++++++++++ 5 files changed, 40 insertions(+) create mode 100644 tqdm/_main.py create mode 100644 tqdm/_tqdm.py create mode 100644 tqdm/_tqdm_gui.py create mode 100644 tqdm/_tqdm_notebook.py create mode 100644 tqdm/_utils.py diff --git a/tqdm/_main.py b/tqdm/_main.py new file mode 100644 index 00000000..b4f472cd --- /dev/null +++ b/tqdm/_main.py @@ -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) diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py new file mode 100644 index 00000000..57c3d75b --- /dev/null +++ b/tqdm/_tqdm.py @@ -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) diff --git a/tqdm/_tqdm_gui.py b/tqdm/_tqdm_gui.py new file mode 100644 index 00000000..f31a2483 --- /dev/null +++ b/tqdm/_tqdm_gui.py @@ -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) diff --git a/tqdm/_tqdm_notebook.py b/tqdm/_tqdm_notebook.py new file mode 100644 index 00000000..d424112f --- /dev/null +++ b/tqdm/_tqdm_notebook.py @@ -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) diff --git a/tqdm/_utils.py b/tqdm/_utils.py new file mode 100644 index 00000000..e1574f5f --- /dev/null +++ b/tqdm/_utils.py @@ -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)