diff options
author | David Cournapeau <cournape@gmail.com> | 2008-12-27 10:06:25 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-12-27 10:06:25 +0000 |
commit | 6cadd13e1ae92123187e5f59d84bbeb2bcbd4776 (patch) | |
tree | b85c2262f36df4252b62c0e218843f3ff3b827d2 /numpy/distutils/mingw32ccompiler.py | |
parent | 7d1612d1721bfb04289df1684125b223b236b805 (diff) | |
download | numpy-6cadd13e1ae92123187e5f59d84bbeb2bcbd4776.tar.gz |
Fix some typo/syntax errors when converting dict access to a function in manifest generation.
Diffstat (limited to 'numpy/distutils/mingw32ccompiler.py')
-rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py index 738f4ba00..567289939 100644 --- a/numpy/distutils/mingw32ccompiler.py +++ b/numpy/distutils/mingw32ccompiler.py @@ -252,9 +252,9 @@ def msvcrt_version(num): try: import msvcrt if hasattr(msvcrt, "CRT_ASSEMBLY_VERSION"): - _MSVCRVER_TO_FULLVER = {'90': msvcrt.CRT_ASSEMBLY_VERSION} + _MSVCRVER_TO_FULLVER['90'] = msvcrt.CRT_ASSEMBLY_VERSION else: - _MSVCRVER_TO_FULLVER = {'90': "9.0.21022.8"} + _MSVCRVER_TO_FULLVER['90'] = "9.0.21022.8" except ImportError: # If we are here, means python was not built with MSVC. Not sure what to do # in that case: manifest building will fail, but it should not be used in @@ -265,7 +265,7 @@ def msvc_manifest_xml(maj, min): """Given a major and minor version of the MSVCR, returns the corresponding XML file.""" try: - fullver = msvcrt_version[str(maj * 10 + min)] + fullver = msvcrt_version(str(maj * 10 + min)) except KeyError: raise ValueError("Version %d,%d of MSVCRT not supported yet" \ % (maj, min)) |