diff options
author | Geert Bosch <geert.bosch@mongodb.com> | 2019-12-05 04:28:59 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-12-05 04:28:59 +0000 |
commit | 95eedd93ea7a5b8b35b9bb042d5ca165736c17c2 (patch) | |
tree | 754a9d48ad72c661253b9f16e82a4ad157327aef /buildscripts/linter | |
parent | 42655faaf32bceaca1f77a3d79a1eac3d10b9b09 (diff) | |
download | mongo-95eedd93ea7a5b8b35b9bb042d5ca165736c17c2.tar.gz |
SERVER-44955 Force reading patch files with UTF-8 encoding in git.py
Diffstat (limited to 'buildscripts/linter')
-rw-r--r-- | buildscripts/linter/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/linter/git.py b/buildscripts/linter/git.py index 686f534987e..f55c7c1fe5e 100644 --- a/buildscripts/linter/git.py +++ b/buildscripts/linter/git.py @@ -194,7 +194,7 @@ def get_files_to_check_from_patch(patches, filter_function): lines = [] # type: List[str] for patch in patches: - with open(patch, "r") as infile: + with open(patch, "r", encoding="utf-8") as infile: lines += infile.readlines() candidates = [check.match(line).group(1) for line in lines if check.match(line)] |