Output to stdout: ensure stdout is flushed to prevent truncation errors
This commit is contained in:
@@ -806,6 +806,7 @@ def copy_final(
|
||||
from shutil import copyfileobj
|
||||
with open(input_file, 'rb') as input_stream:
|
||||
copyfileobj(input_stream, sys.stdout.buffer)
|
||||
sys.stdout.flush()
|
||||
else:
|
||||
shutil.copy(input_file, output_file)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user