mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	python: Simplify stdio flushing using print(…, flush=True).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							d8adeb66ca
						
					
				
				
					commit
					342834ee9c
				
			@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user