Remove support for input(arg=None).
If the caller doesn't want to specify an arg, they should be using go().
This commit is contained in:
parent
a0c7bd0258
commit
051b783964
1 changed files with 3 additions and 10 deletions
|
@ -68,23 +68,16 @@ def multi_line_input(prompt=None):
|
|||
break
|
||||
|
||||
def input(
|
||||
arg=None,
|
||||
arg,
|
||||
*,
|
||||
input_prompt=None,
|
||||
read_files=False,
|
||||
skip_blank=False,
|
||||
strip=False,
|
||||
):
|
||||
if arg is not None:
|
||||
arg_lower = arg.lower()
|
||||
|
||||
if arg is None:
|
||||
if IN_PIPE:
|
||||
lines = multi_line_input()
|
||||
else:
|
||||
raise ValueError(arg)
|
||||
|
||||
elif arg_lower in INPUT_STRINGS:
|
||||
if arg_lower in INPUT_STRINGS:
|
||||
lines = multi_line_input(prompt=input_prompt)
|
||||
if not IN_PIPE:
|
||||
# Wait until the user finishes all their lines before continuing.
|
||||
|
|
Loading…
Reference in a new issue