diff options
author | Christopher Larson <kergoth@gmail.com> | 2011-10-27 22:45:04 -0700 |
---|---|---|
committer | Christopher Larson <kergoth@gmail.com> | 2011-10-27 22:45:52 -0700 |
commit | 8e4e75383e43d6da2c16ec5286186a0d0569b0f8 (patch) | |
tree | 772251b2e1da556f246aae6934de036815464b84 | |
parent | 6cae2d11f8e254a1d01bf294eef916ac43a1881b (diff) | |
download | bitbake-8e4e75383e43d6da2c16ec5286186a0d0569b0f8.tar.gz |
codeparser: make var_expands actually hold useful information
Previously, it was calling var_expands.update() rather than add(), with
a string argument, resulting in adding each character of that string to
the var_expands set, rather than the string itself.
Signed-off-by: Christopher Larson <kergoth@gmail.com>
-rw-r--r-- | lib/bb/codeparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py index 83bbb927a..0dd9a365e 100644 --- a/lib/bb/codeparser.py +++ b/lib/bb/codeparser.py @@ -227,7 +227,7 @@ class PythonParser(): elif self.compare_name(self.expands, node.func): if isinstance(node.args[0], ast.Str): self.warn(node.func, node.args[0]) - self.var_expands.update(node.args[0].s) + self.var_expands.add(node.args[0].s) elif isinstance(node.args[0], ast.Call) and \ self.compare_name(self.getvars, node.args[0].func): pass |