Skip to content

Commit d833b0e

Browse files
committed
Fix unsupported f-string syntax
1 parent 3fae695 commit d833b0e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,23 +132,23 @@ def FindLatestMSVC( quiet ):
132132
try:
133133
latest_v = int( latest_full_v.split( '.' )[ 0 ] )
134134
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." )
136136

137137
if not quiet:
138-
print( f'vswhere -latest returned version {latest_full_v=}' )
138+
print( f'vswhere -latest returned version {latest_full_v}' )
139139

140140
if latest_v not in ACCEPTABLE_VERSIONS:
141141
if latest_v > 17:
142142
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.' )
144144
else:
145145
raise ValueError(
146-
f'vswhere returned {latest_full_v=} which is unexpected.'
146+
f'vswhere returned {latest_full_v} which is unexpected.'
147147
'Pass --msvc <version> argument.' )
148148
return latest_v
149149
else:
150150
if not quiet:
151-
print( f'vswhere returned nothing usable, {latest_full_v=}' )
151+
print( f'vswhere returned nothing usable, {latest_full_v}' )
152152

153153
# Fall back to registry parsing, which works at least until MSVC 2019 (16)
154154
# but is likely failing on MSVC 2022 (17)

0 commit comments

Comments
 (0)