diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-27 16:18:15 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-29 10:25:51 +0000 |
| commit | c57ace2460d54fd7291feca4fddef39638d673fd (patch) | |
| tree | 6ca7e833308a86b352f24792503d6dd08c52945d /bitbake/lib/bb/parse/parse_py | |
| parent | 459ac215e60e533ffe24f402e070e85697c608f7 (diff) | |
| download | poky-c57ace2460d54fd7291feca4fddef39638d673fd.tar.gz | |
bitbake: BBHandler: Remove pointless global variable declarations
These are static regex compilations which don't change or a standard module
import (bb). There is noneed to declare them as global so drop the pointless
code which doesn't do anything.
(Bitbake rev: 09a4c159e3fd184f730821e7bd99916b0d28dc70)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py')
| -rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index 18e6868387..584966fea1 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py | |||
| @@ -102,7 +102,7 @@ def get_statements(filename, absolute_filename, base_name): | |||
| 102 | return statements | 102 | return statements |
| 103 | 103 | ||
| 104 | def handle(fn, d, include): | 104 | def handle(fn, d, include): |
| 105 | global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __infunc__, __body__, __residue__, __classname__ | 105 | global __infunc__, __body__, __residue__, __classname__ |
| 106 | __body__ = [] | 106 | __body__ = [] |
| 107 | __infunc__ = [] | 107 | __infunc__ = [] |
| 108 | __classname__ = "" | 108 | __classname__ = "" |
| @@ -154,7 +154,7 @@ def handle(fn, d, include): | |||
| 154 | return d | 154 | return d |
| 155 | 155 | ||
| 156 | def feeder(lineno, s, fn, root, statements, eof=False): | 156 | def feeder(lineno, s, fn, root, statements, eof=False): |
| 157 | global __func_start_regexp__, __inherit_regexp__, __export_func_regexp__, __addtask_regexp__, __addhandler_regexp__, __def_regexp__, __python_func_regexp__, __inpython__, __infunc__, __body__, bb, __residue__, __classname__ | 157 | global __inpython__, __infunc__, __body__, __residue__, __classname__ |
| 158 | 158 | ||
| 159 | # Check tabs in python functions: | 159 | # Check tabs in python functions: |
| 160 | # - def py_funcname(): covered by __inpython__ | 160 | # - def py_funcname(): covered by __inpython__ |
