mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
Merge 234247586e into 9573c13884
This commit is contained in:
commit
c88b6197ff
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ def check_file_for_aws_keys(filenames, keys):
|
|||
|
||||
for filename in filenames:
|
||||
with open(filename, 'r') as content:
|
||||
text_body = content.read()
|
||||
text_body = content.read().decode('utf-8')
|
||||
if any(key in text_body for key in keys):
|
||||
# naively match the entire file, low chance of incorrect collision
|
||||
bad_files.append(filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue