summaryrefslogtreecommitdiff
path: root/numpy/distutils/mingw32ccompiler.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-11-17 12:05:01 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-11-17 12:05:01 +0000
commitbcd69c968f6955c431f81031532c25be93a426c0 (patch)
treeec63e9b03cf824aa0f4a8dee1b26ad304e2b2903 /numpy/distutils/mingw32ccompiler.py
parent4ebd39d35a1ff5b045e02453548c621c016e6704 (diff)
downloadnumpy-bcd69c968f6955c431f81031532c25be93a426c0.tar.gz
Fix string formatting.
Diffstat (limited to 'numpy/distutils/mingw32ccompiler.py')
-rw-r--r--numpy/distutils/mingw32ccompiler.py8
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)