summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data_smart.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r--bitbake/lib/bb/data_smart.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index efa5a79f78..67af38050e 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -122,7 +122,11 @@ class VariableParse:
122 connector = self.d["_remote_data"] 122 connector = self.d["_remote_data"]
123 return connector.expandPythonRef(self.varname, code, self.d) 123 return connector.expandPythonRef(self.varname, code, self.d)
124 124
125 codeobj = compile(code.strip(), self.varname or "<expansion>", "eval") 125 if self.varname:
126 varname = 'Var <%s>' % self.varname
127 else:
128 varname = '<expansion>'
129 codeobj = compile(code.strip(), varname, "eval")
126 130
127 parser = bb.codeparser.PythonParser(self.varname, logger) 131 parser = bb.codeparser.PythonParser(self.varname, logger)
128 parser.parse_python(code) 132 parser.parse_python(code)