summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/util.py
diff options
context:
space:
mode:
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)
commit3cab2f150c5ab8af6cedbe9ce5550d97e4a4004a (patch)
tree6b47832c98920e8956eab057606465a09327e35b /Lib/packaging/util.py
parent04fc999c057dffee882e8711ba28ec51ee092698 (diff)
downloadcpython-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.py2
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