summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhanatosZou <tongzou@uw.edu>2021-01-03 18:50:48 -0800
committerPhanatosZou <tongzou@uw.edu>2021-01-03 18:50:48 -0800
commit86cd3582c0e9101ac40434ae4488abdab1c1c910 (patch)
tree644e53266a3dd0818edeecbf1165245b4bc2fe9c
parent72a8368962fd1365d480a88a1c84a1aae243dd6a (diff)
downloadnumpy-86cd3582c0e9101ac40434ae4488abdab1c1c910.tar.gz
fix exception cause in mingw32ccompiler.py
-rw-r--r--numpy/distutils/mingw32ccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index 3358695a8..4681d403b 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -566,7 +566,7 @@ def msvc_manifest_xml(maj, min):
fullver = _MSVCRVER_TO_FULLVER[str(maj * 10 + min)]
except KeyError:
raise ValueError("Version %d,%d of MSVCRT not supported yet" %
- (maj, min))
+ (maj, min)) from None
# Don't be fooled, it looks like an XML, but it is not. In particular, it
# should not have any space before starting, and its size should be
# divisible by 4, most likely for alignment constraints when the xml is