parser: fix harmless typo in variable name
s/absolsute/absolute/ (Bitbake rev: 837c84ce47c298316b941a5f3d2479bd2643686b) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
3beecc66e9
commit
c63278bf34
|
@ -80,13 +80,13 @@ def inherit(files, d):
|
||||||
include(fn, file, d, "inherit")
|
include(fn, file, d, "inherit")
|
||||||
__inherit_cache = data.getVar('__inherit_cache', d) or []
|
__inherit_cache = data.getVar('__inherit_cache', d) or []
|
||||||
|
|
||||||
def get_statements(filename, absolsute_filename, base_name):
|
def get_statements(filename, absolute_filename, base_name):
|
||||||
global cached_statements
|
global cached_statements
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return cached_statements[absolsute_filename]
|
return cached_statements[absolute_filename]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
file = open(absolsute_filename, 'r')
|
file = open(absolute_filename, 'r')
|
||||||
statements = ast.StatementGroup()
|
statements = ast.StatementGroup()
|
||||||
|
|
||||||
lineno = 0
|
lineno = 0
|
||||||
|
@ -101,7 +101,7 @@ def get_statements(filename, absolsute_filename, base_name):
|
||||||
feeder(IN_PYTHON_EOF, "", filename, base_name, statements)
|
feeder(IN_PYTHON_EOF, "", filename, base_name, statements)
|
||||||
|
|
||||||
if filename.endswith(".bbclass") or filename.endswith(".inc"):
|
if filename.endswith(".bbclass") or filename.endswith(".inc"):
|
||||||
cached_statements[absolsute_filename] = statements
|
cached_statements[absolute_filename] = statements
|
||||||
return statements
|
return statements
|
||||||
|
|
||||||
def handle(fn, d, include):
|
def handle(fn, d, include):
|
||||||
|
|
Loading…
Reference in New Issue