summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPaul Fagerburg <pfagerburg@google.com>2020-07-27 15:52:15 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-28 22:59:41 +0000
commit6efabc79d3519baa56ba1c065035a491fc6918ec (patch)
tree9981d7bbdc897ef485226c8f13000c4a2ef83403 /util
parent63498074bd3a77b28d2a96ef43aeceed51aa2bde (diff)
downloadchrome-ec-6efabc79d3519baa56ba1c065035a491fc6918ec.tar.gz
ec: change usage of whitelist/blacklist
Google is working to change its source code to use more inclusive language. To that end, replace the terms "whitelist", "blacklist", and similar with inclusive alternatives. BUG=b:162262297 BRANCH=None TEST=`grep -Eirl "(white|black)[ _\-]*list" .` The only results are in "private/nordic_keyboard/sdk8.0.0" which is not our code. Signed-off-by: Paul Fagerburg <pfagerburg@google.com> Change-Id: Ie5210b98e1096c22d0e9284c101a42820bd3d79d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321549 Tested-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/config_option_check.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/config_option_check.py b/util/config_option_check.py
index bf5ac315c1..f4262430aa 100755
--- a/util/config_option_check.py
+++ b/util/config_option_check.py
@@ -50,7 +50,7 @@ class Hunk(object):
CONFIG_FILE = 'include/config.h'
# Specific files which the checker should ignore.
-WHITELIST = [CONFIG_FILE, 'util/config_option_check.py']
+ALLOWLIST = [CONFIG_FILE, 'util/config_option_check.py']
def obtain_current_config_options():
"""Obtains current config options from include/config.h.
@@ -304,8 +304,8 @@ def get_hunks():
match = filename_re.search(line)
if match:
filename = match.groups(1)[0]
- if filename in WHITELIST:
- # Skip the file if it's whitelisted.
+ if filename in ALLOWLIST:
+ # Skip the file if it's allowlisted.
current_state = state.NEW_FILE
else:
current_state = state.HUNK