File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -252,9 +252,9 @@ def msvcrt_version(num):
252252 try :
253253 import msvcrt
254254 if hasattr (msvcrt , "CRT_ASSEMBLY_VERSION" ):
255- _MSVCRVER_TO_FULLVER = { '90' : msvcrt .CRT_ASSEMBLY_VERSION }
255+ _MSVCRVER_TO_FULLVER [ '90' ] = msvcrt .CRT_ASSEMBLY_VERSION
256256 else :
257- _MSVCRVER_TO_FULLVER = { '90' : "9.0.21022.8" }
257+ _MSVCRVER_TO_FULLVER [ '90' ] = "9.0.21022.8"
258258 except ImportError :
259259 # If we are here, means python was not built with MSVC. Not sure what to do
260260 # in that case: manifest building will fail, but it should not be used in
@@ -265,7 +265,7 @@ def msvc_manifest_xml(maj, min):
265265 """Given a major and minor version of the MSVCR, returns the
266266 corresponding XML file."""
267267 try :
268- fullver = msvcrt_version [ str (maj * 10 + min )]
268+ fullver = msvcrt_version ( str (maj * 10 + min ))
269269 except KeyError :
270270 raise ValueError ("Version %d,%d of MSVCRT not supported yet" \
271271 % (maj , min ))
You can’t perform that action at this time.
0 commit comments