diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py')
| -rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index 31f44f7df3..ac981b8346 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py | |||
| @@ -65,7 +65,8 @@ IN_PYTHON_EOF = -9999999999999 | |||
| 65 | 65 | ||
| 66 | 66 | ||
| 67 | def supports(fn, d): | 67 | def supports(fn, d): |
| 68 | return fn[-3:] == ".bb" or fn[-8:] == ".bbclass" or fn[-4:] == ".inc" | 68 | """Return True if fn has a supported extension""" |
| 69 | return os.path.splitext(fn)[-1] in [".bb", ".bbclass", ".inc"] | ||
| 69 | 70 | ||
| 70 | def inherit(files, d): | 71 | def inherit(files, d): |
| 71 | __inherit_cache = data.getVar('__inherit_cache', d) or [] | 72 | __inherit_cache = data.getVar('__inherit_cache', d) or [] |
