summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index 52fd8285ed..9708416a0a 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -80,13 +80,13 @@ def inherit(files, d):
80 include(fn, file, d, "inherit") 80 include(fn, file, d, "inherit")
81 __inherit_cache = data.getVar('__inherit_cache', d) or [] 81 __inherit_cache = data.getVar('__inherit_cache', d) or []
82 82
83def get_statements(filename, absolsute_filename, base_name): 83def get_statements(filename, absolute_filename, base_name):
84 global cached_statements 84 global cached_statements
85 85
86 try: 86 try:
87 return cached_statements[absolsute_filename] 87 return cached_statements[absolute_filename]
88 except KeyError: 88 except KeyError:
89 file = open(absolsute_filename, 'r') 89 file = open(absolute_filename, 'r')
90 statements = ast.StatementGroup() 90 statements = ast.StatementGroup()
91 91
92 lineno = 0 92 lineno = 0
@@ -101,7 +101,7 @@ def get_statements(filename, absolsute_filename, base_name):
101 feeder(IN_PYTHON_EOF, "", filename, base_name, statements) 101 feeder(IN_PYTHON_EOF, "", filename, base_name, statements)
102 102
103 if filename.endswith(".bbclass") or filename.endswith(".inc"): 103 if filename.endswith(".bbclass") or filename.endswith(".inc"):
104 cached_statements[absolsute_filename] = statements 104 cached_statements[absolute_filename] = statements
105 return statements 105 return statements
106 106
107def handle(fn, d, include): 107def handle(fn, d, include):