summaryrefslogtreecommitdiffstats
path: root/bitbake
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 /bitbake
parent960e305d9abbbeed0ed2d5251ff94cf1719e5159 (diff)
downloadpoky-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>
Diffstat (limited to 'bitbake')
-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 e44e791585..116481559a 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -122,7 +122,7 @@ class PythonParser():
122 name = self.called_node_name(node.func) 122 name = self.called_node_name(node.func)
123 if name in self.getvars or name in self.containsfuncs: 123 if name in self.getvars or name in self.containsfuncs:
124 if isinstance(node.args[0], ast.Str): 124 if isinstance(node.args[0], ast.Str):
125 self.var_references.add(node.args[0].s) 125 self.references.add(node.args[0].s)
126 else: 126 else:
127 self.warn(node.func, node.args[0]) 127 self.warn(node.func, node.args[0])
128 elif name in self.execfuncs: 128 elif name in self.execfuncs:
@@ -147,7 +147,6 @@ class PythonParser():
147 break 147 break
148 148
149 def __init__(self, name, log): 149 def __init__(self, name, log):
150 self.var_references = set()
151 self.var_execs = set() 150 self.var_execs = set()
152 self.execs = set() 151 self.execs = set()
153 self.references = set() 152 self.references = set()
@@ -177,7 +176,6 @@ class PythonParser():
177 if n.__class__.__name__ == "Call": 176 if n.__class__.__name__ == "Call":
178 self.visit_Call(n) 177 self.visit_Call(n)
179 178
180 self.references.update(self.var_references)
181 self.references.update(self.var_execs) 179 self.references.update(self.var_execs)
182 180
183 codeparsercache.pythoncacheextras[h] = {} 181 codeparsercache.pythoncacheextras[h] = {}