From 7884a8c9f5f5c6657413dbeaa59ad969280d38ea Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Sat, 23 Jan 2016 15:58:58 +0100 Subject: ENH: Add stacklevel to all (or almost all) our function calls --- numpy/_import_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/_import_tools.py') 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): -- cgit v1.2.1