From a07c9d09e52c2f416c2e67ae712e9ca7ab9ca6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E7=95=85?= <631866165@qq.com> Date: Thu, 27 Aug 2020 16:09:50 +0800 Subject: [PATCH] fix stdout flush --- subcmds/push.py | 1 + 1 file changed, 1 insertion(+) diff --git a/subcmds/push.py b/subcmds/push.py index f3c057c..55d7690 100644 --- a/subcmds/push.py +++ b/subcmds/push.py @@ -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')