@@ -238,9 +238,7 @@ def cpython_tags(
238
238
if use_abi3 :
239
239
for minor_version in range (python_version [1 ] - 1 , 1 , - 1 ):
240
240
for platform_ in platforms :
241
- interpreter = "cp{version}" .format (
242
- version = _version_nodot ((python_version [0 ], minor_version ))
243
- )
241
+ interpreter = f"cp{ _version_nodot ((python_version [0 ], minor_version ))} "
244
242
yield Tag (interpreter , "abi3" , platform_ )
245
243
246
244
@@ -442,9 +440,7 @@ def mac_platforms(
442
440
compat_version = 10 , minor_version
443
441
binary_formats = _mac_binary_formats (compat_version , arch )
444
442
for binary_format in binary_formats :
445
- yield "macosx_{major}_{minor}_{binary_format}" .format (
446
- major = 10 , minor = minor_version , binary_format = binary_format
447
- )
443
+ yield f"macosx_10_{ minor_version } _{ binary_format } "
448
444
449
445
if version >= (11 , 0 ):
450
446
# Starting with Mac OS 11, each yearly release bumps the major version
@@ -453,9 +449,7 @@ def mac_platforms(
453
449
compat_version = major_version , 0
454
450
binary_formats = _mac_binary_formats (compat_version , arch )
455
451
for binary_format in binary_formats :
456
- yield "macosx_{major}_{minor}_{binary_format}" .format (
457
- major = major_version , minor = 0 , binary_format = binary_format
458
- )
452
+ yield f"macosx_{ major_version } _0_{ binary_format } "
459
453
460
454
if version >= (11 , 0 ):
461
455
# Mac OS 11 on x86_64 is compatible with binaries from previous releases.
@@ -470,20 +464,12 @@ def mac_platforms(
470
464
compat_version = 10 , minor_version
471
465
binary_formats = _mac_binary_formats (compat_version , arch )
472
466
for binary_format in binary_formats :
473
- yield "macosx_{major}_{minor}_{binary_format}" .format (
474
- major = compat_version [0 ],
475
- minor = compat_version [1 ],
476
- binary_format = binary_format ,
477
- )
467
+ yield f"macosx_{ compat_version [0 ]} _{ compat_version [1 ]} _{ binary_format } "
478
468
else :
479
469
for minor_version in range (16 , 3 , - 1 ):
480
470
compat_version = 10 , minor_version
481
471
binary_format = "universal2"
482
- yield "macosx_{major}_{minor}_{binary_format}" .format (
483
- major = compat_version [0 ],
484
- minor = compat_version [1 ],
485
- binary_format = binary_format ,
486
- )
472
+ yield f"macosx_{ compat_version [0 ]} _{ compat_version [1 ]} _{ binary_format } "
487
473
488
474
489
475
def _linux_platforms (is_32bit : bool = _32_BIT_INTERPRETER ) -> Iterator [str ]:
0 commit comments