mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-02 10:56:52 +00:00
Add a flush
This commit is contained in:
parent
8a98c5e590
commit
9567db66e5
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ def _check_filename(filename):
|
|||
for i, line in enumerate(f, 1):
|
||||
if GITHUB_NON_PERMALINK.search(line):
|
||||
sys.stdout.write('{}:{}:'.format(filename, i))
|
||||
sys.stdout.flush()
|
||||
getattr(sys.stdout, 'buffer', sys.stdout).write(line)
|
||||
retv = 1
|
||||
return retv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue