diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2016-01-23 15:58:58 +0100 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2016-09-02 16:39:17 +0200 |
commit | 7884a8c9f5f5c6657413dbeaa59ad969280d38ea (patch) | |
tree | 91b55f723315291bf2605bb42aef809a65ff1d85 /numpy/_import_tools.py | |
parent | 9164f23c19c049e28d4d4825a53bbb01aedabcfc (diff) | |
download | numpy-7884a8c9f5f5c6657413dbeaa59ad969280d38ea.tar.gz |
ENH: Add stacklevel to all (or almost all) our function calls
Diffstat (limited to 'numpy/_import_tools.py')
-rw-r--r-- | numpy/_import_tools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_import_tools.py b/numpy/_import_tools.py index eda0284fe..18ac78d29 100644 --- a/numpy/_import_tools.py +++ b/numpy/_import_tools.py @@ -166,7 +166,7 @@ class PackageLoader(object): # 2014-10-29, 1.10 warnings.warn('pkgload and PackageLoader are obsolete ' 'and will be removed in a future version of numpy', - DeprecationWarning) + DeprecationWarning, stacklevel=2) frame = self.parent_frame self.info_modules = {} if options.get('force', False): |