From c7f7cfd506f504f658088bc0c7ee9f487d8a3d3f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 17 May 2005 18:04:46 +0000 Subject: bitbake data module abstraction: -bb.data is now a delegate to hookable Data implementation. -bb.data.init() is the 'factory' method to create a instance of a concrete implementation. -Kill assumptions that bb.data.init() returns a {} (python dict) -Add the old Dictionary Based Implementation as data_dict.py --- lib/bb/parse/BBHandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/bb/parse/BBHandler.py') diff --git a/lib/bb/parse/BBHandler.py b/lib/bb/parse/BBHandler.py index 70d84cb06..7ff3909ad 100644 --- a/lib/bb/parse/BBHandler.py +++ b/lib/bb/parse/BBHandler.py @@ -64,7 +64,7 @@ def inherit(files, d): data.setVar('__inherit_cache', __inherit_cache, d) -def handle(fn, d = {}, include = 0): +def handle(fn, d = data.init(), include = 0): global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __bbpath_found__, __residue__ __body__ = [] __bbpath_found__ = 0 @@ -156,7 +156,7 @@ def handle(fn, d = {}, include = 0): set_additional_vars(fn, d, include) data.update_data(d) - for var in d.keys(): + for var in data.keys(d): if data.getVarFlag(var, 'handler', d): bb.event.register(data.getVar(var, d)) continue -- cgit 1.2.3-korg