Skip to content

Commit 7632c7a

Browse files
committed
Spell abis and platforms as plural words.
1 parent 01a512c commit 7632c7a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/pip/_internal/cli/cmdoptions.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def check_dist_restriction(options, check_target=False):
9797
"""
9898
dist_restriction_set = any([
9999
options.python_version,
100-
options.platform,
101-
options.abi,
100+
options.platforms,
101+
options.abis,
102102
options.implementation,
103103
])
104104

@@ -490,10 +490,10 @@ def only_binary():
490490
)
491491

492492

493-
platform = partial(
493+
platforms = partial(
494494
Option,
495495
'--platform',
496-
dest='platform',
496+
dest='platforms',
497497
metavar='platform',
498498
action='append',
499499
default=None,
@@ -583,10 +583,10 @@ def _handle_python_version(option, opt_str, value, parser):
583583
) # type: Callable[..., Option]
584584

585585

586-
abi = partial(
586+
abis = partial(
587587
Option,
588588
'--abi',
589-
dest='abi',
589+
dest='abis',
590590
metavar='abi',
591591
action='append',
592592
default=None,
@@ -601,18 +601,18 @@ def _handle_python_version(option, opt_str, value, parser):
601601

602602
def add_target_python_options(cmd_opts):
603603
# type: (OptionGroup) -> None
604-
cmd_opts.add_option(platform())
604+
cmd_opts.add_option(platforms())
605605
cmd_opts.add_option(python_version())
606606
cmd_opts.add_option(implementation())
607-
cmd_opts.add_option(abi())
607+
cmd_opts.add_option(abis())
608608

609609

610610
def make_target_python(options):
611611
# type: (Values) -> TargetPython
612612
target_python = TargetPython(
613-
platforms=options.platform,
613+
platforms=options.platforms,
614614
py_version_info=options.python_version,
615-
abis=options.abi,
615+
abis=options.abis,
616616
implementation=options.implementation,
617617
)
618618

0 commit comments

Comments
 (0)