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/distutils/command/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/distutils/command/config.py') diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index ea1cd3e24..e43fb631b 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -431,7 +431,7 @@ int main (void) "use it anymore, and avoid configuration checks \n" \ "involving running executable on the target machine.\n" \ "+++++++++++++++++++++++++++++++++++++++++++++++++\n", - DeprecationWarning) + DeprecationWarning, stacklevel=2) from distutils.ccompiler import CompileError, LinkError self._check_compiler() exitcode, output = 255, '' -- cgit v1.2.1