summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-22 13:53:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-23 09:22:44 +0100
commitc8cce4e0d6c25e4ee85cf23790363905a188eef4 (patch)
tree820fb80062e12004f54a6919c74345abd77d9676 /bitbake/lib/bb/parse
parent43cbd5afceff490d4691dcc841f8b3aa7cfbcb87 (diff)
downloadpoky-c8cce4e0d6c25e4ee85cf23790363905a188eef4.tar.gz
bitbake: methodpool: Clean up the parsed module list handling to be slightly less insane
This removes some dubious functions and replaces them with a simpler, cleaner API which better describes what the code is doing. Unused code/variables are removed and comments tweaked. (Bitbake rev: f1e943aebfb84e98253f3f21646d6765c4fa1d66) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse')
-rw-r--r--bitbake/lib/bb/parse/ast.py1
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index b88d5f5b39..4d3a623aa2 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -31,7 +31,6 @@ import itertools
31from bb import methodpool 31from bb import methodpool
32from bb.parse import logger 32from bb.parse import logger
33 33
34__parsed_methods__ = bb.methodpool.get_parsed_dict()
35_bbversions_re = re.compile(r"\[(?P<from>[0-9]+)-(?P<to>[0-9]+)\]") 34_bbversions_re = re.compile(r"\[(?P<from>[0-9]+)-(?P<to>[0-9]+)\]")
36 35
37class StatementGroup(list): 36class StatementGroup(list):
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index 625a2a21fd..2e0647b5df 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -161,7 +161,7 @@ def handle(fn, d, include):
161 161
162 # we have parsed the bb class now 162 # we have parsed the bb class now
163 if ext == ".bbclass" or ext == ".inc": 163 if ext == ".bbclass" or ext == ".inc":
164 bb.methodpool.get_parsed_dict()[base_name] = 1 164 bb.methodpool.set_parsed_module(base_name)
165 165
166 return d 166 return d
167 167