From 1b6575d5a5d4e24d150e5db83984a056e509424c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 5 Nov 2020 13:32:26 +0100 Subject: [PATCH] Avoid variable names with negative conotations --- flags/assertflags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')]