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:
Éric Araujo 2011-06-08 04:10:57 +02:00
parent 04fc999c05
commit 3cab2f150c
4 changed files with 19 additions and 17 deletions

View file

@ -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