From 9da706c1fb01a324e4a42760fbceeef78af3e2bc Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 28 Feb 2013 16:42:45 -0700 Subject: 2to3: Apply `sys_exc` fixes. Closes #3086. This uses sys.exc_info in place of sys.exc_value. The new function goes back to at least 2002, so should be safe. --- numpy/distutils/cpuinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/distutils') diff --git a/numpy/distutils/cpuinfo.py b/numpy/distutils/cpuinfo.py index a9b2af108..96bf37bb3 100644 --- a/numpy/distutils/cpuinfo.py +++ b/numpy/distutils/cpuinfo.py @@ -516,7 +516,7 @@ class Win32CPUInfo(CPUInfoBase): info[-1]["Model"]=int(srch.group("MDL")) info[-1]["Stepping"]=int(srch.group("STP")) except: - print(sys.exc_value,'(ignoring)') + print(sys.exc_info()[1],'(ignoring)') self.__class__.info = info def _not_impl(self): pass -- cgit v1.2.1