diff --git a/src/cooler/__init__.py b/src/cooler/__init__.py index f498e54..e52ad84 100644 --- a/src/cooler/__init__.py +++ b/src/cooler/__init__.py @@ -9,7 +9,7 @@ :license: BSD """ -from . import balance, create, fileops, parallel, tools +from . import balance, create, fileops, parallel from ._logging import get_verbosity_level, set_verbosity_level from ._version import __format_version__, __version__ from .api import Cooler, annotate diff --git a/src/cooler/tools.py b/src/cooler/tools.py deleted file mode 100644 index 11d99b8..0000000 --- a/src/cooler/tools.py +++ /dev/null @@ -1,23 +0,0 @@ -import sys -from warnings import warn - -from . import parallel - -deprecated_names = ["partition", "split", "lock", "MultiplexDataPipe"] - - -if sys.version_info[0] == 3 and sys.version_info[1] >= 7: - - def __getattr__(name): - if name in deprecated_names: - warn( - "The `cooler.tools` module is deprecated in v0.9 and will be " - "removed in v0.10. Use `cooler.parallel` instead.", - category=FutureWarning, - stacklevel=2, - ) - return getattr(parallel, name) - raise AttributeError(f"module {__name__!r} has no attribute {name!r}") - -else: - from .parallel import * # noqa