summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-07 18:08:53 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-07 18:09:03 (GMT)
commit09031ac2fc0f30ec577ee823fc61ff0e5d852e21 (patch)
tree15ce5b3729af3fc244d23a3f1bdf9e99976c8e5b
parentdf1f0ee32ee1e95b7976a755ed88df849772c2cc (diff)
downloadpoky-09031ac2fc0f30ec577ee823fc61ff0e5d852e21.tar.gz
bitbake: Revert "BBHandler: Ensure parser state engine is correctly reset for new parsing"
This reverts commit 1a4ea02932d07c437187f67ac5b6e25ad76ee84a. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index c4e579d..2e0647b 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -107,15 +107,14 @@ def get_statements(filename, absolute_filename, base_name):
107 return statements 107 return statements
108 108
109def handle(fn, d, include): 109def handle(fn, d, include):
110 global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__, __inpython__, classes 110 global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__
111 __body__ = [] 111 __body__ = []
112 __infunc__ = "" 112 __infunc__ = ""
113 __classname__ = "" 113 __classname__ = ""
114 __residue__ = [] 114 __residue__ = []
115 __inpython__ = False 115
116 116
117 if include == 0: 117 if include == 0:
118 classes = [ None, ]
119 logger.debug(2, "BB %s: handle(data)", fn) 118 logger.debug(2, "BB %s: handle(data)", fn)
120 else: 119 else:
121 logger.debug(2, "BB %s: handle(data, include)", fn) 120 logger.debug(2, "BB %s: handle(data, include)", fn)