diff options
-rw-r--r-- | bitbake/lib/bb/codeparser.py | 4 |
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] = {} |