python: Simplify stdio flushing using print(…, flush=True).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-06-09 13:11:26 -07:00
committed by Tim Abbott
parent d8adeb66ca
commit 342834ee9c
6 changed files with 13 additions and 25 deletions

View File

@@ -198,9 +198,9 @@ def get_deployment_lock(error_rerun_script: str) -> None:
WARNING
+ "Another deployment in progress; waiting for lock... "
+ "(If no deployment is running, rmdir {})".format(LOCK_DIR)
+ ENDC
+ ENDC,
flush=True,
)
sys.stdout.flush()
time.sleep(3)
if not got_lock: