8000 Flush the file buffers after writing for better behavior when wrapped · python/mypy@0285070 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0285070

Browse files
committed
Flush the file buffers after writing for better behavior when wrapped
1 parent d614a2f commit 0285070

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def flush_errors(a: List[str], serious: bool) -> None:
6767
try:
6868
for m in a:
6969
f.write(m + '\n')
70+
f.flush()
7071
except BrokenPipeError:
7172
pass
7273

0 commit comments

Comments
 (0)
0