Browse Source

Use wrapped stdout directly

rfm69
Maxim Prokhorov 6 years ago
parent
commit
072c491da6
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      pre-commit

+ 1
- 2
pre-commit View File

@ -13,7 +13,6 @@ Travis badge with the current branch. Based on [4].
Copy this file to .git/hooks/
"""
from __future__ import print_function
import os
import sys
@ -119,6 +118,6 @@ if __name__ == "__main__":
with FileInput(path, inplace=True) as readme:
for line in readme:
print(fmt_line(line), end='')
sys.stdout.write(fmt_line(line))
sys.exit(call(["git", "add", README]))

Loading…
Cancel
Save