summaryrefslogtreecommitdiffstats
path: root/lib/bb/parse/ast.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-01-04 13:07:27 -0700
committerChris Larson <chris_larson@mentor.com>2011-01-05 11:22:38 -0700
commitaa9646717b3ee1006628246a7c495f601e62391c (patch)
tree0a80b5ef1616bcf893a1e888d016b5ac85ab9100 /lib/bb/parse/ast.py
parent0b11a3d4eab84b372fd45b9537cf0327008daf8d (diff)
downloadbitbake-aa9646717b3ee1006628246a7c495f601e62391c.tar.gz
parse.ast: drop __word__ regular expression
We can use the string split method for this instead. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/parse/ast.py')
-rw-r--r--lib/bb/parse/ast.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/bb/parse/ast.py b/lib/bb/parse/ast.py
index bb42f2398..078e4ec28 100644
--- a/lib/bb/parse/ast.py
+++ b/lib/bb/parse/ast.py
@@ -31,7 +31,6 @@ import itertools
from bb import methodpool
from bb.parse import logger
-__word__ = re.compile(r"\S+")
__parsed_methods__ = bb.methodpool.get_parsed_dict()
_bbversions_re = re.compile(r"\[(?P<from>[0-9]+)-(?P<to>[0-9]+)\]")
@@ -176,7 +175,7 @@ class MethodFlagsNode(AstNode):
class ExportFuncsNode(AstNode):
def __init__(self, fns, classes):
- self.n = __word__.findall(fns)
+ self.n = fns.split()
self.classes = classes
def eval(self, data):
@@ -246,7 +245,7 @@ class AddTaskNode(AstNode):
class BBHandlerNode(AstNode):
def __init__(self, fns):
- self.hs = __word__.findall(fns)
+ self.hs = fns.split()
def eval(self, data):
bbhands = bb.data.getVar('__BBHANDLERS', data) or []
@@ -297,7 +296,7 @@ def handleBBHandlers(statements, m):
def handleInherit(statements, m):
classes = m.group(1)
- statements.append(InheritNode(__word__.findall(classes)))
+ statements.append(InheritNode(classes.split()))
def finalize(fn, d):
for lazykey in bb.data.getVar("__lazy_assigned", d) or ():