Don't use walrus operator in interpreter query script (#14108)

Fix `uv run -p 3.7` by not using a walrus operator. Python 3.7 isn't
really supported anymore, but there's no reason to break interpreter
discovery for it.
This commit is contained in:
konsti 2025-06-17 19:18:08 +02:00 committed by GitHub
parent 3d4f0c934e
commit 10e1d17cfc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -255,5 +255,6 @@ def platform_tags(archs: Sequence[str]) -> Iterator[str]:
if _is_compatible(arch, glibc_version):
yield "manylinux_{}_{}_{}".format(*glibc_version, arch)
# Handle the legacy manylinux1, manylinux2010, manylinux2014 tags.
if legacy_tag := _LEGACY_MANYLINUX_MAP.get(glibc_version):
legacy_tag = _LEGACY_MANYLINUX_MAP.get(glibc_version)
if legacy_tag:
yield f"{legacy_tag}_{arch}"