summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-25 23:00:17 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-26 23:01:32 +0000
commit3ca58c762f09047c3798ef982b4c6fcd395a5809 (patch)
treea371ef63eb9cc3d1174c5268c05e2c6033640ba1
parent960e305d9abbbeed0ed2d5251ff94cf1719e5159 (diff)
downloadast2050-yocto-poky-3ca58c762f09047c3798ef982b4c6fcd395a5809.zip
ast2050-yocto-poky-3ca58c762f09047c3798ef982b4c6fcd395a5809.tar.gz
bitbake: codeparser: Drop unneeded variable separation
There is no good reason to separately track var_references and references so merge them and remove the unneeded variable. (Bitbake rev: 64d4cbd6360c96574cece70205ea3aecc3f8bae6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/codeparser.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index e44e791..1164815 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -122,7 +122,7 @@ class PythonParser():
name = self.called_node_name(node.func)
if name in self.getvars or name in self.containsfuncs:
if isinstance(node.args[0], ast.Str):
- self.var_references.add(node.args[0].s)
+ self.references.add(node.args[0].s)
else:
self.warn(node.func, node.args[0])
elif name in self.execfuncs:
@@ -147,7 +147,6 @@ class PythonParser():
break
def __init__(self, name, log):
- self.var_references = set()
self.var_execs = set()
self.execs = set()
self.references = set()
@@ -177,7 +176,6 @@ class PythonParser():
if n.__class__.__name__ == "Call":
self.visit_Call(n)
- self.references.update(self.var_references)
self.references.update(self.var_execs)
codeparsercache.pythoncacheextras[h] = {}
OpenPOWER on IntegriCloud