mirror of
https://git.codelinaro.org/clo/tools/repo.git
synced 2025-08-06 05:35:03 +08:00
Allow 'y' as a valid response when confirming identity
I prefer having to type only one character rather than all three, and it seems like other confirmation prompts use the same style.
This commit is contained in:
@ -167,8 +167,9 @@ to update the working directory files.
|
||||
|
||||
print ''
|
||||
print 'Your identity is: %s <%s>' % (name, email)
|
||||
sys.stdout.write('is this correct [yes/no]? ')
|
||||
if 'yes' == sys.stdin.readline().strip():
|
||||
sys.stdout.write('is this correct [y/n]? ')
|
||||
a = sys.stdin.readline().strip()
|
||||
if a in ('yes', 'y', 't', 'true'):
|
||||
break
|
||||
|
||||
if name != mp.UserName:
|
||||
|
Reference in New Issue
Block a user