summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/codeparser.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index 9a692a0c8e..615fb7d610 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -152,7 +152,6 @@ def parser_cache_savemerge(d):
152 152
153class PythonParser(): 153class PythonParser():
154 getvars = ("d.getVar", "bb.data.getVar", "data.getVar") 154 getvars = ("d.getVar", "bb.data.getVar", "data.getVar")
155 expands = ("d.expand", "bb.data.expand", "data.expand")
156 execfuncs = ("bb.build.exec_func", "bb.build.exec_task") 155 execfuncs = ("bb.build.exec_func", "bb.build.exec_task")
157 156
158 def warn(self, func, arg): 157 def warn(self, func, arg):
@@ -176,15 +175,6 @@ class PythonParser():
176 self.var_references.add(node.args[0].s) 175 self.var_references.add(node.args[0].s)
177 else: 176 else:
178 self.warn(node.func, node.args[0]) 177 self.warn(node.func, node.args[0])
179 elif name in self.expands:
180 if isinstance(node.args[0], ast.Str):
181 self.warn(node.func, node.args[0])
182 self.var_expands.add(node.args[0].s)
183 elif isinstance(node.args[0], ast.Call) and \
184 self.called_node_name(node.args[0].func) in self.getvars:
185 pass
186 else:
187 self.warn(node.func, node.args[0])
188 elif name in self.execfuncs: 178 elif name in self.execfuncs:
189 if isinstance(node.args[0], ast.Str): 179 if isinstance(node.args[0], ast.Str):
190 self.var_execs.add(node.args[0].s) 180 self.var_execs.add(node.args[0].s)
@@ -210,7 +200,6 @@ class PythonParser():
210 self.var_references = set() 200 self.var_references = set()
211 self.var_execs = set() 201 self.var_execs = set()
212 self.execs = set() 202 self.execs = set()
213 self.var_expands = set()
214 self.references = set() 203 self.references = set()
215 204
216 self.unhandled_message = "in call of %s, argument '%s' is not a string literal" 205 self.unhandled_message = "in call of %s, argument '%s' is not a string literal"