From 72826ab930217f013bd681bc205517a0cb4c16c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albrecht=20M=C3=BChlenschulte?= Date: Tue, 2 Jul 2019 17:14:58 +0200 Subject: [PATCH] trying to fix python-version issue 3 --- pre_commit_hooks/detect_aws_credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit_hooks/detect_aws_credentials.py b/pre_commit_hooks/detect_aws_credentials.py index 96ec49b..dd459c4 100644 --- a/pre_commit_hooks/detect_aws_credentials.py +++ b/pre_commit_hooks/detect_aws_credentials.py @@ -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