|
|
@@ -294,7 +294,9 @@ to update the working directory files.
|
|
|
sys.exit(1)
|
|
|
|
|
|
def _Prompt(self, prompt, value):
|
|
|
- sys.stdout.write('%-10s [%s]: ' % (prompt, value))
|
|
|
+ print('%-10s [%s]: ' % (prompt, value), end='')
|
|
|
+ # TODO: When we require Python 3, use flush=True w/print above.
|
|
|
+ sys.stdout.flush()
|
|
|
a = sys.stdin.readline().strip()
|
|
|
if a == '':
|
|
|
return value
|
|
|
@@ -328,7 +330,9 @@ to update the working directory files.
|
|
|
|
|
|
print()
|
|
|
print('Your identity is: %s <%s>' % (name, email))
|
|
|
- sys.stdout.write('is this correct [y/N]? ')
|
|
|
+ print('is this correct [y/N]? ', end='')
|
|
|
+ # TODO: When we require Python 3, use flush=True w/print above.
|
|
|
+ sys.stdout.flush()
|
|
|
a = sys.stdin.readline().strip().lower()
|
|
|
if a in ('yes', 'y', 't', 'true'):
|
|
|
break
|
|
|
@@ -370,7 +374,9 @@ 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)? ')
|
|
|
+ print('Enable color display in this user account (y/N)? ', end='')
|
|
|
+ # TODO: When we require Python 3, use flush=True w/print above.
|
|
|
+ sys.stdout.flush()
|
|
|
a = sys.stdin.readline().strip().lower()
|
|
|
if a in ('y', 'yes', 't', 'true', 'on'):
|
|
|
gc.SetString('color.ui', 'auto')
|