mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
Packaging cleanup: normalize print calls.
Namely: use default arguments instead of explicit empty string; use multiple arguments instead of building strings.
This commit is contained in:
parent
04fc999c05
commit
3cab2f150c
4 changed files with 19 additions and 17 deletions
|
@ -1099,7 +1099,7 @@ def ask(message, options):
|
|||
response = input(message)
|
||||
response = response.strip().lower()
|
||||
if response not in options:
|
||||
print('invalid response: %r' % response)
|
||||
print('invalid response:', repr(response))
|
||||
print('choose one of', ', '.join(repr(o) for o in options))
|
||||
else:
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue