Skip to content

Commit

Permalink
Use assignment expression to reduce a line
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt authored Jan 31, 2025
1 parent e44f20f commit bbfb63c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/packaging/_manylinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,5 @@ def platform_tags(archs: Sequence[str]) -> Iterator[str]:
yield "manylinux_{}_{}_{}".format(*glibc_version, arch)

# Handle the legacy manylinux1, manylinux2010, manylinux2014 tags.
legacy_tag = _LEGACY_MANYLINUX_MAP.get(glibc_version)
if legacy_tag:
if legacy_tag := _LEGACY_MANYLINUX_MAP.get(glibc_version):
yield f"{legacy_tag}_{arch}"

0 comments on commit bbfb63c

Please sign in to comment.