summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/parse_py/BBHandler.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-23 10:47:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-24 10:34:52 +0100
commit8bef99d3c85f48ff409eaebb964b1c45b203bdcf (patch)
tree45663874832e85f9c80d6df9d521357a4e5dcb77 /bitbake/lib/bb/parse/parse_py/BBHandler.py
parent3c5b9cf15f2034b704f571a75ad102cc57f9a3b6 (diff)
downloadpoky-8bef99d3c85f48ff409eaebb964b1c45b203bdcf.tar.gz
bitbake: methodpool: Retire it, remove global method scope
Having a global method scope confuses users and with the introduction of parallel parsing, its not even possible to correctly detect conflicting functions. Rather than try and fix that, its simpler to retire the global method scope and restrict functions to those locations they're defined within. This is more what users actually expect too. If we remove the global function scope, the need for methodpool is reduced to the point we may as well retire it. There is some small loss of caching of parsed functions but timing measurements so the impact to be neglibile in the overall parsing time. (Bitbake rev: 4d50690489ee8dc329a9b0c7bc4ceb29b71e95e9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index 87a1530cb5..01f22d3b24 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -167,10 +167,6 @@ def handle(fn, d, include):
167 if oldfile: 167 if oldfile:
168 d.setVar("FILE", oldfile) 168 d.setVar("FILE", oldfile)
169 169
170 # we have parsed the bb class now
171 if ext == ".bbclass" or ext == ".inc":
172 bb.methodpool.set_parsed_module(base_name)
173
174 return d 170 return d
175 171
176def feeder(lineno, s, fn, root, statements): 172def feeder(lineno, s, fn, root, statements):