From e9311273dda9aef91c563cd69b30f7a7491c56b5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 11 Aug 2011 15:46:43 -0400 Subject: repo: capitalize default prompt char It is common in command line tools to indicate what the default answer will be if the user simply hits enter. In repo, the display is just "y/n" with no indication as to which is the default. So change the n to N in the messages since that is how repo operates. Change-Id: I81819ae630355072eb0365e59168b0921289498f --- subcmds/init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subcmds/init.py') diff --git a/subcmds/init.py b/subcmds/init.py index 9214aed5..1c23d620 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -189,7 +189,7 @@ to update the working directory files. print '' print 'Your identity is: %s <%s>' % (name, email) - sys.stdout.write('is this correct [y/n]? ') + sys.stdout.write('is this correct [y/N]? ') a = sys.stdin.readline().strip() if a in ('yes', 'y', 't', 'true'): break @@ -231,7 +231,7 @@ to update the working directory files. out.printer(fg='black', attr=c)(' %-6s ', c) out.nl() - sys.stdout.write('Enable color display in this user account (y/n)? ') + sys.stdout.write('Enable color display in this user account (y/N)? ') a = sys.stdin.readline().strip().lower() if a in ('y', 'yes', 't', 'true', 'on'): gc.SetString('color.ui', 'auto') -- cgit v1.2.3-54-g00ecf