Avoid variable names with negative conotations

This commit is contained in:
Miro Hrončok 2020-11-05 13:32:26 +01:00
commit 1b6575d5a5

View file

@ -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')]