mirror of
https://github.com/soimort/you-get.git
synced 2025-02-09 03:37:52 +03:00
Sort return without duplicate condition
This commit is contained in:
parent
8b7566eeb3
commit
11f78325e6
@ -99,6 +99,4 @@ def wtf(message, exit_code=1):
|
|||||||
|
|
||||||
def yes_or_no(message):
|
def yes_or_no(message):
|
||||||
ans = str(input('%s (y/N) ' % message)).lower().strip()
|
ans = str(input('%s (y/N) ' % message)).lower().strip()
|
||||||
if ans == 'y':
|
return ans == 'y'
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
Loading…
Reference in New Issue
Block a user