diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-10-29 09:52:35 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-10-29 09:52:35 -0700 |
commit | c63e1f470cf84a928499b2570a091f801cb67ba2 (patch) | |
tree | ccbc578f5470bf0b2eddb2c888ee3a884e6b9759 | |
parent | 3b22d87050ab63db0dcd2d763644d924a69c5254 (diff) | |
parent | 4638475311228b099c278d5afc166c98c85bbc80 (diff) | |
download | numpy-c63e1f470cf84a928499b2570a091f801cb67ba2.tar.gz |
Merge pull request #5245 from argriffing/deprecate-pkgload
DEP: deprecate pkgload
-rw-r--r-- | doc/release/1.10.0-notes.rst | 8 | ||||
-rw-r--r-- | numpy/_import_tools.py | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/doc/release/1.10.0-notes.rst b/doc/release/1.10.0-notes.rst index 70a9fae3f..c387f0ec7 100644 --- a/doc/release/1.10.0-notes.rst +++ b/doc/release/1.10.0-notes.rst @@ -88,7 +88,11 @@ SafeEval The SafeEval class in numpy/lib/utils.py is deprecated and will be removed in the next release. -alterdot, restoredot Deprecated -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +alterdot, restoredot +~~~~~~~~~~~~~~~~~~~~ The alterdot and restoredot functions no longer do anything, and are deprecated. + +pkgload, PackageLoader +~~~~~~~~~~~~~~~~~~~~~~ +These ways of loading packages are now deprecated. diff --git a/numpy/_import_tools.py b/numpy/_import_tools.py index 526217359..9b1942e8d 100644 --- a/numpy/_import_tools.py +++ b/numpy/_import_tools.py @@ -2,6 +2,7 @@ from __future__ import division, absolute_import, print_function import os import sys +import warnings __all__ = ['PackageLoader'] @@ -162,7 +163,10 @@ class PackageLoader(object): postpone= : bool when True, don't load packages [default: False] - """ + """ + warnings.warn('pkgload and PackageLoader are obsolete ' + 'and will be removed in a future version of numpy', + DeprecationWarning) frame = self.parent_frame self.info_modules = {} if options.get('force', False): |