summaryrefslogtreecommitdiff
path: root/buildscripts/linter
diff options
context:
space:
mode:
authorGeert Bosch <geert.bosch@mongodb.com>2019-12-05 04:28:59 +0000
committerevergreen <evergreen@mongodb.com>2019-12-05 04:28:59 +0000
commit95eedd93ea7a5b8b35b9bb042d5ca165736c17c2 (patch)
tree754a9d48ad72c661253b9f16e82a4ad157327aef /buildscripts/linter
parent42655faaf32bceaca1f77a3d79a1eac3d10b9b09 (diff)
downloadmongo-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.py2
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)]