From 1b6575d5a5d4e24d150e5db83984a056e509424c Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Nov 05 2020 12:32:26 +0000 Subject: Avoid variable names with negative conotations --- diff --git a/flags/assertflags.py b/flags/assertflags.py index 3373275..c7f0b08 100644 --- a/flags/assertflags.py +++ b/flags/assertflags.py @@ -16,7 +16,7 @@ import sysconfig # The flags that currently don't have the -Og flag on the debug build # and we consider it OK, because we don't know any better :) -WHITELIST = [ +SKIP = [ 'CONFIGURE_CFLAGS', 'CONFIGURE_CFLAGS_NODIST', 'CONFIG_ARGS', @@ -27,7 +27,7 @@ print('Expecting that {} is the last -O flag:\n'.format(sys.argv[1])) ret = 0 for key, flags in sysconfig.get_config_vars().items(): - if key in WHITELIST: + if key in SKIP: continue if isinstance(flags, str): oflags = [f for f in flags.split(' ') if f.startswith('-O')]