diff options
author | Éric Araujo <merwok@netwok.org> | 2011-06-08 02:10:57 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-06-08 02:10:57 (GMT) |
commit | 3cab2f150c5ab8af6cedbe9ce5550d97e4a4004a (patch) | |
tree | 6b47832c98920e8956eab057606465a09327e35b /Lib/packaging/util.py | |
parent | 04fc999c057dffee882e8711ba28ec51ee092698 (diff) | |
download | cpython-3cab2f150c5ab8af6cedbe9ce5550d97e4a4004a.zip cpython-3cab2f150c5ab8af6cedbe9ce5550d97e4a4004a.tar.gz cpython-3cab2f150c5ab8af6cedbe9ce5550d97e4a4004a.tar.bz2 |
Packaging cleanup: normalize print calls.
Namely: use default arguments instead of explicit empty string; use multiple
arguments instead of building strings.
Diffstat (limited to 'Lib/packaging/util.py')
-rw-r--r-- | Lib/packaging/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/util.py b/Lib/packaging/util.py index d4aae41..812dbe3 100644 --- a/Lib/packaging/util.py +++ b/Lib/packaging/util.py @@ -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 |