aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mintro.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-05-26 09:34:23 -0700
committerEli Schwartz <eschwartz93@gmail.com>2022-06-01 22:49:10 -0400
commit2a0082b13a19833ad3e09589df51a1535b925cf6 (patch)
tree006afc1e59241f23c5b6c79726d3a1b32704b4e5 /mesonbuild/mintro.py
parent3260c0ebdb47f2836b78204806114e7ddb84c51f (diff)
downloadmeson-2a0082b13a19833ad3e09589df51a1535b925cf6.zip
meson-2a0082b13a19833ad3e09589df51a1535b925cf6.tar.gz
meson-2a0082b13a19833ad3e09589df51a1535b925cf6.tar.bz2
ast: rename module constant to match PEP8 style
Diffstat (limited to 'mesonbuild/mintro.py')
-rw-r--r--mesonbuild/mintro.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/mintro.py b/mesonbuild/mintro.py
index 223c31d..e83c08b 100644
--- a/mesonbuild/mintro.py
+++ b/mesonbuild/mintro.py
@@ -23,7 +23,7 @@ import collections
import json
from . import build, coredata as cdata
from . import mesonlib
-from .ast import IntrospectionInterpreter, build_target_functions, AstConditionLevel, AstIDGenerator, AstIndentationGenerator, AstJSONPrinter
+from .ast import IntrospectionInterpreter, BUILD_TARGET_FUNCTIONS, AstConditionLevel, AstIDGenerator, AstIndentationGenerator, AstJSONPrinter
from . import mlog
from .backend import backends
from .mparser import BaseNode, FunctionNode, ArrayNode, ArgumentNode, StringNode
@@ -166,7 +166,7 @@ def list_targets_from_source(intr: IntrospectionInterpreter) -> T.List[T.Dict[st
args = [] # type: T.List[BaseNode]
if isinstance(n, FunctionNode):
args = list(n.args.arguments)
- if n.func_name in build_target_functions:
+ if n.func_name in BUILD_TARGET_FUNCTIONS:
args.pop(0)
elif isinstance(n, ArrayNode):
args = n.args.arguments