summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/packaging/create.py')
-rw-r--r--Lib/packaging/create.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/create.py b/Lib/packaging/create.py
index 34a8c82..59b448d 100644
--- a/Lib/packaging/create.py
+++ b/Lib/packaging/create.py
@@ -121,7 +121,7 @@ def ask_yn(question, default=None, helptext=None):
question += ' (y/n)'
while True:
answer = ask(question, default, helptext, required=True)
- if answer and answer[0].lower() in 'yn':
+ if answer and answer[0].lower() in ('y', 'n'):
return answer[0].lower()
print('\nERROR: You must select "Y" or "N".\n')