File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -132,23 +132,23 @@ def FindLatestMSVC( quiet ):
132
132
try :
133
133
latest_v = int ( latest_full_v .split ( '.' )[ 0 ] )
134
134
except ValueError :
135
- raise ValueError ( "{latest_full_v= } is not a version number." )
135
+ raise ValueError ( f "{ latest_full_v } is not a version number." )
136
136
137
137
if not quiet :
138
- print ( f'vswhere -latest returned version { latest_full_v = } ' )
138
+ print ( f'vswhere -latest returned version { latest_full_v } ' )
139
139
140
140
if latest_v not in ACCEPTABLE_VERSIONS :
141
141
if latest_v > 17 :
142
142
if not quiet :
143
- print ( f'MSVC Version { latest_full_v = } is newer than expected.' )
143
+ print ( f'MSVC Version { latest_full_v } is newer than expected.' )
144
144
else :
145
145
raise ValueError (
146
- f'vswhere returned { latest_full_v = } which is unexpected.'
146
+ f'vswhere returned { latest_full_v } which is unexpected.'
147
147
'Pass --msvc <version> argument.' )
148
148
return latest_v
149
149
else :
150
150
if not quiet :
151
- print ( f'vswhere returned nothing usable, { latest_full_v = } ' )
151
+ print ( f'vswhere returned nothing usable, { latest_full_v } ' )
152
152
153
153
# Fall back to registry parsing, which works at least until MSVC 2019 (16)
154
154
# but is likely failing on MSVC 2022 (17)
You can’t perform that action at this time.
0 commit comments