fix stdout flush

This commit is contained in:
江畅
2020-08-27 16:09:50 +08:00
parent 707b481e16
commit a07c9d09e5
+1
View File
@@ -172,6 +172,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
pushurl = project.manifest.manifestProject.config.GetString('repo.pushurl')
sys.stdout.write('to %s (y/n)? ' % (pushurl and 'server: ' + pushurl or 'remote') )
sys.stdout.flush()
answer = sys.stdin.readline().strip()
answer = answer in ('y', 'Y', 'yes', '1', 'true', 't')