summaryrefslogtreecommitdiff
path: root/numpy/distutils/cpuinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/cpuinfo.py')
-rw-r--r--numpy/distutils/cpuinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/cpuinfo.py b/numpy/distutils/cpuinfo.py
index 020f2c02f..03860c151 100644
--- a/numpy/distutils/cpuinfo.py
+++ b/numpy/distutils/cpuinfo.py
@@ -117,7 +117,7 @@ class LinuxCPUInfo(CPUInfoBase):
fo = open('/proc/cpuinfo')
except EnvironmentError:
e = get_exception()
- warnings.warn(str(e), UserWarning)
+ warnings.warn(str(e), UserWarning, stacklevel=2)
else:
for line in fo:
name_value = [s.strip() for s in line.split(':', 1)]