diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-08-09 23:54:38 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2018-08-12 10:48:18 -0700 |
commit | 85cf4efe47a0d8dbdf268c5870974d72af12e216 (patch) | |
tree | 03d205312ae660260fb9876d301e9b75dc9f27ee /numpy/__init__.py | |
parent | 8e892d4efd8fed1ff499d6c0ec8fba0943bbe3db (diff) | |
download | numpy-85cf4efe47a0d8dbdf268c5870974d72af12e216.tar.gz |
DEP: Remove np.pkgload, which was deprecated in 1.10
Attempts to use this on either cpython27 or cpython35, in either a shell or a script, gives:
NameError: name '__path__' is not defined
Perhaps I'm calling it wrong, but it might just be broken.
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r-- | numpy/__init__.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index 2b8d41798..e1df236bb 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -133,17 +133,9 @@ else: from .version import git_revision as __git_revision__ from .version import version as __version__ - from ._import_tools import PackageLoader - - def pkgload(*packages, **options): - loader = PackageLoader(infunc=True) - return loader(*packages, **options) - __all__ = ['ModuleDeprecationWarning', 'VisibleDeprecationWarning'] - pkgload.__doc__ = PackageLoader.__call__.__doc__ - # Allow distributors to run custom init code from . import _distributor_init @@ -172,8 +164,7 @@ else: from .core import round, abs, max, min - __all__.extend(['__version__', 'pkgload', 'PackageLoader', - 'show_config']) + __all__.extend(['__version__', 'show_config']) __all__.extend(core.__all__) __all__.extend(_mat.__all__) __all__.extend(lib.__all__) |