From 76ff0775d807f99b01ce0b8ae3f5b072ceb8fc79 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 19 Jun 2020 21:37:11 -0700 Subject: [PATCH] [libcxx] As part of using inclusive language within the llvm project, migrate away from the use of blacklist and whitelist. --- libcxx/utils/libcxx/sym_check/util.py | 2 +- libcxx/utils/sym_match.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libcxx/utils/libcxx/sym_check/util.py b/libcxx/utils/libcxx/sym_check/util.py index 0ebde9034cab..4b04ac4dfe2d 100644 --- a/libcxx/utils/libcxx/sym_check/util.py +++ b/libcxx/utils/libcxx/sym_check/util.py @@ -31,7 +31,7 @@ def read_syms_from_file(filename): return read_syms_from_list(data.splitlines()) -def read_blacklist(filename): +def read_exclusions(filename): with open(filename, 'r') as f: data = f.read() lines = [l.strip() for l in data.splitlines() if l.strip()] diff --git a/libcxx/utils/sym_match.py b/libcxx/utils/sym_match.py index 1fd39ca5f838..e1fd28bd6a51 100755 --- a/libcxx/utils/sym_match.py +++ b/libcxx/utils/sym_match.py @@ -19,7 +19,7 @@ def main(): parser = ArgumentParser( description='Extract a list of symbols from a shared library.') parser.add_argument( - '--blacklist', dest='blacklist', + '--exclusions', dest='exclusions', type=str, action='store', default=None) parser.add_argument( 'symbol_list', metavar='symbol_list', type=str, @@ -29,11 +29,11 @@ def main(): help='The file containing the new symbol list or a library') args = parser.parse_args() - if not args.regexes and args.blacklist is None: - sys.stderr.write('Either a regex or a blacklist must be specified.\n') + if not args.regexes and args.exclusions is None: + sys.stderr.write('Either a regex or a exclusions must be specified.\n') sys.exit(1) - if args.blacklist: - search_list = util.read_blacklist(args.blacklist) + if args.exclusions: + search_list = util.read_exclusions(args.exclusions) else: search_list = args.regexes