diff options
author | Éric Araujo <merwok@netwok.org> | 2011-09-19 14:21:37 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-09-19 14:21:37 (GMT) |
commit | 1cbd2ab4044dbef8e1c7cb0b694f30049f42e7f6 (patch) | |
tree | 9b15764cdc5a7e8ee5d3692516a5cf4c1f15b37c /Lib/packaging/command | |
parent | becf1c58572f29d4f35f448194e3ef9c535e3be0 (diff) | |
download | cpython-1cbd2ab4044dbef8e1c7cb0b694f30049f42e7f6.zip cpython-1cbd2ab4044dbef8e1c7cb0b694f30049f42e7f6.tar.gz cpython-1cbd2ab4044dbef8e1c7cb0b694f30049f42e7f6.tar.bz2 |
Avoid matching '' or 'yn' when asking for 'y' or 'n' in interactive code
Diffstat (limited to 'Lib/packaging/command')
-rw-r--r-- | Lib/packaging/command/register.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/command/register.py b/Lib/packaging/command/register.py index 67cda80..59805f7 100644 --- a/Lib/packaging/command/register.py +++ b/Lib/packaging/command/register.py @@ -178,7 +178,7 @@ Your selection [default 1]: ''') 'will be faster.\n(the login will be stored in %s)', get_pypirc_path()) choice = 'X' - while choice.lower() not in 'yn': + while choice.lower() not in ('y', 'n'): choice = input('Save your login (y/N)?') if not choice: choice = 'n' |