Skip to content

Commit f7ed21c

Browse files
committed
Remove dead code from _get_custom_platforms
Since `arch` must be non-`None` for this function to be invoked.
1 parent 4c9baee commit f7ed21c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/pip/_internal/pep425tags.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,6 @@ def _get_custom_platforms(arch):
313313
arches = _mac_platforms(arch)
314314
elif arch_prefix in ['manylinux2014', 'manylinux2010']:
315315
arches = _custom_manylinux_platforms(arch)
316-
elif arch is None:
317-
arches = []
318-
if is_manylinux2014_compatible():
319-
arches.append('manylinux2014' + arch_sep + arch_suffix)
320-
if is_manylinux2010_compatible():
321-
arches.append('manylinux2010' + arch_sep + arch_suffix)
322-
if is_manylinux1_compatible():
323-
arches.append('manylinux1' + arch_sep + arch_suffix)
324-
arches.append(arch)
325316
else:
326317
arches = [arch]
327318
return arches

0 commit comments

Comments
 (0)