diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index a770131fbc..a388773bb7 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py | |||
@@ -90,7 +90,7 @@ def get_statements(filename, absolsute_filename, base_name): | |||
90 | statements = ast.StatementGroup() | 90 | statements = ast.StatementGroup() |
91 | 91 | ||
92 | lineno = 0 | 92 | lineno = 0 |
93 | while 1: | 93 | while True: |
94 | lineno = lineno + 1 | 94 | lineno = lineno + 1 |
95 | s = file.readline() | 95 | s = file.readline() |
96 | if not s: break | 96 | if not s: break |
@@ -118,7 +118,7 @@ def handle(fn, d, include): | |||
118 | bb.msg.debug(2, bb.msg.domain.Parsing, "BB " + fn + ": handle(data, include)") | 118 | bb.msg.debug(2, bb.msg.domain.Parsing, "BB " + fn + ": handle(data, include)") |
119 | 119 | ||
120 | (root, ext) = os.path.splitext(os.path.basename(fn)) | 120 | (root, ext) = os.path.splitext(os.path.basename(fn)) |
121 | base_name = "%s%s" % (root,ext) | 121 | base_name = "%s%s" % (root, ext) |
122 | init(d) | 122 | init(d) |
123 | 123 | ||
124 | if ext == ".bbclass": | 124 | if ext == ".bbclass": |
@@ -164,7 +164,7 @@ def handle(fn, d, include): | |||
164 | return d | 164 | return d |
165 | 165 | ||
166 | def feeder(lineno, s, fn, root, statements): | 166 | def feeder(lineno, s, fn, root, statements): |
167 | global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __def_regexp__, __python_func_regexp__, __inpython__,__infunc__, __body__, classes, bb, __residue__ | 167 | global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __def_regexp__, __python_func_regexp__, __inpython__, __infunc__, __body__, classes, bb, __residue__ |
168 | if __infunc__: | 168 | if __infunc__: |
169 | if s == '}': | 169 | if s == '}': |
170 | __body__.append('') | 170 | __body__.append('') |