summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-07 18:08:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-07 18:08:53 +0000
commit34a8d45f26212e20e2520b6a25a65900aff8c17e (patch)
tree7feba73650341f85d14ecde9359596a44be5c0a6
parent1a4ea02932d07c437187f67ac5b6e25ad76ee84a (diff)
downloadbitbake-34a8d45f26212e20e2520b6a25a65900aff8c17e.tar.gz
Revert "BBHandler: Ensure parser state engine is correctly reset for new parsing"
This reverts commit 1a4ea02932d07c437187f67ac5b6e25ad76ee84a.
-rw-r--r--lib/bb/parse/parse_py/BBHandler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bb/parse/parse_py/BBHandler.py b/lib/bb/parse/parse_py/BBHandler.py
index c4e579d07..2e0647b5d 100644
--- a/lib/bb/parse/parse_py/BBHandler.py
+++ b/lib/bb/parse/parse_py/BBHandler.py
@@ -107,15 +107,14 @@ def get_statements(filename, absolute_filename, base_name):
return statements
def handle(fn, d, include):
- global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__, __inpython__, classes
+ global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__
__body__ = []
__infunc__ = ""
__classname__ = ""
__residue__ = []
- __inpython__ = False
+
if include == 0:
- classes = [ None, ]
logger.debug(2, "BB %s: handle(data)", fn)
else:
logger.debug(2, "BB %s: handle(data, include)", fn)