diff options
author | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2021-05-05 20:12:00 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-14 19:07:16 +0000 |
commit | 47d99621851c0cd8da8d0628edeaa2f59bff6e14 (patch) | |
tree | c827d9bcbed0739bc2a421060182d00251825573 /buildscripts/pylinters.py | |
parent | 97ff562f3379ce7e9a7da0c9eb249d35c34c03b1 (diff) | |
download | mongo-47d99621851c0cd8da8d0628edeaa2f59bff6e14.tar.gz |
SERVER-55964 Replace "blacklist" in all code and comments
Diffstat (limited to 'buildscripts/pylinters.py')
-rwxr-xr-x | buildscripts/pylinters.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buildscripts/pylinters.py b/buildscripts/pylinters.py index aab4378d80e..a7cf624a6e7 100755 --- a/buildscripts/pylinters.py +++ b/buildscripts/pylinters.py @@ -58,9 +58,9 @@ def get_py_linter(linter_filter): def is_interesting_file(file_name): # type: (str) -> bool """Return true if this file should be checked.""" - file_blacklist = [] # type: List[str] - directory_blacklist = ["src/third_party"] - if file_name in file_blacklist or file_name.startswith(tuple(directory_blacklist)): + file_denylist = [] # type: List[str] + directory_denylist = ["src/third_party"] + if file_name in file_denylist or file_name.startswith(tuple(directory_denylist)): return False directory_list = ["buildscripts", "pytests"] return file_name.endswith(".py") and file_name.startswith(tuple(directory_list)) |