Skip to content

Commit 92b079a

Browse files
committed
Remove dead code from _get_custom_platforms
Since `arch` must be non-`None` for this function to be invoked.
1 parent 72b6491 commit 92b079a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/pip/_internal/pep425tags.py

-9
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,6 @@ def _get_custom_platforms(arch):
309309
arches = _mac_platforms(arch)
310310
elif arch_prefix in ['manylinux2014', 'manylinux2010']:
311311
arches = _custom_manylinux_platforms(arch)
312-
elif arch is None:
313-
arches = []
314-
if is_manylinux2014_compatible():
315-
arches.append('manylinux2014' + arch_sep + arch_suffix)
316-
if is_manylinux2010_compatible():
317-
arches.append('manylinux2010' + arch_sep + arch_suffix)
318-
if is_manylinux1_compatible():
319-
arches.append('manylinux1' + arch_sep + arch_suffix)
320-
arches.append(arch)
321312
else:
322313
arches = [arch]
323314
return arches

0 commit comments

Comments
 (0)