1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Flush stderr to avoid lost output.

This commit is contained in:
Matt Clay 2016-08-11 15:14:22 -07:00
parent 925b0ff9e9
commit 2b0d63b0d8

View file

@ -161,6 +161,7 @@ def print_stderr(*args, **kwargs):
"""Print to stderr.""" """Print to stderr."""
print(*args, file=sys.stderr, **kwargs) print(*args, file=sys.stderr, **kwargs)
sys.stderr.flush()
def dump_stderr(label, l): def dump_stderr(label, l):