diff options
author | David Cournapeau <cournape@gmail.com> | 2008-11-17 12:05:01 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-11-17 12:05:01 +0000 |
commit | bcd69c968f6955c431f81031532c25be93a426c0 (patch) | |
tree | ec63e9b03cf824aa0f4a8dee1b26ad304e2b2903 /numpy/distutils/mingw32ccompiler.py | |
parent | 4ebd39d35a1ff5b045e02453548c621c016e6704 (diff) | |
download | numpy-bcd69c968f6955c431f81031532c25be93a426c0.tar.gz |
Fix string formatting.
Diffstat (limited to 'numpy/distutils/mingw32ccompiler.py')
-rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py index a62be27a4..4da06b65a 100644 --- a/numpy/distutils/mingw32ccompiler.py +++ b/numpy/distutils/mingw32ccompiler.py @@ -301,9 +301,9 @@ def check_embedded_msvcr_match_linked(msver): # embedding msvcv = msvc_runtime_library() if msvcv: - maj = msvcv[5:6] + maj = int(msvcv[5:6]) if not maj == int(msver): - raise ValueError, + raise ValueError, \ "Dyscrepancy between linked msvcr " \ - "(%f) and the one about to be embedded " \ - "(%f)" % (int(msver), maj) + "(%d) and the one about to be embedded " \ + "(%d)" % (int(msver), maj) |