Skip to content

Commit 9567db6

Browse files
committed
Add a flush
1 parent 8a98c5e commit 9567db6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pre_commit_hooks/check_vcs_permalinks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def _check_filename(filename):
1818
for i, line in enumerate(f, 1):
1919
if GITHUB_NON_PERMALINK.search(line):
2020
sys.stdout.write('{}:{}:'.format(filename, i))
21+
sys.stdout.flush()
2122
getattr(sys.stdout, 'buffer', sys.stdout).write(line)
2223
retv = 1
2324
return retv

0 commit comments

Comments
 (0)