mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
trying to fix python-version issue 3
This commit is contained in:
parent
5bbf4fd193
commit
72826ab930
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ def check_file_for_aws_keys(filenames, keys):
|
|||
for filename in filenames:
|
||||
with io.open(filename, 'rb') as content:
|
||||
binary_body = content.read()
|
||||
text_body = binary_body.decode(error='ignore')
|
||||
text_body = binary_body.decode(errors='ignore')
|
||||
for key in keys:
|
||||
# naively match the entire file, low chance of incorrect
|
||||
# collision
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue