Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69333fa commit 2d57068Copy full SHA for 2d57068
1 file changed
pre_commit/languages/pygrep.py
@@ -29,7 +29,7 @@ def _process_filename_by_line(pattern, filename):
29
def _process_filename_at_once(pattern, filename):
30
retv = 0
31
with open(filename, 'rb') as f:
32
- match = pattern.search(f.read())
+ match = pattern.search(f.read().decode('utf-8').replace('\n',''))
33
if match:
34
retv = 1
35
output.write('{}:'.format(filename))
0 commit comments