diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-01-08 09:51:20 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 09:51:20 -0600 |
commit | 3dbf5ce5fdbc996e8abb6929a219689cf8c18e69 (patch) | |
tree | 981d610f11bf67ce05904f160df2c5031d96a268 /numpy | |
parent | 73fe877ff967f279d470b81ad447b9f3056c1335 (diff) | |
parent | 86cd3582c0e9101ac40434ae4488abdab1c1c910 (diff) | |
download | numpy-3dbf5ce5fdbc996e8abb6929a219689cf8c18e69.tar.gz |
Merge pull request #18109 from PhanatosZou/chain-exceptions
MAINT: Fix exception cause in mingw32ccompiler.py
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 2 |
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 |