summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/parse/ast.py')
-rw-r--r--bitbake/lib/bb/parse/ast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index 6e7fd84b16..d4b8b09543 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -147,7 +147,7 @@ class MethodNode(AstNode):
147 def eval(self, data): 147 def eval(self, data):
148 text = '\n'.join(self.body) 148 text = '\n'.join(self.body)
149 if self.func_name == "__anonymous": 149 if self.func_name == "__anonymous":
150 funcname = ("__anon_%s_%s" % (self.lineno, self.filename.translate(string.maketrans('/.+-', '____')))) 150 funcname = ("__anon_%s_%s" % (self.lineno, self.filename.translate(string.maketrans('/.+-@', '_____'))))
151 text = "def %s(d):\n" % (funcname) + text 151 text = "def %s(d):\n" % (funcname) + text
152 bb.methodpool.insert_method(funcname, text, self.filename) 152 bb.methodpool.insert_method(funcname, text, self.filename)
153 anonfuncs = data.getVar('__BBANONFUNCS') or [] 153 anonfuncs = data.getVar('__BBANONFUNCS') or []