diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-14 11:02:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-14 17:10:59 +0000 |
commit | b06c7392e14a6de3ed7efa4ef5bb3cbd1faf3e37 (patch) | |
tree | fd6290b3d2fe24e4606bf92d5b1dfd72ef74d2a5 /bitbake/lib/bb/data_smart.py | |
parent | 55b6d577a0157379961732fbd92da397a91b08d8 (diff) | |
download | poky-b06c7392e14a6de3ed7efa4ef5bb3cbd1faf3e37.tar.gz |
bitbake: data_smart: Add missing regexp markup
Fix some further python3 warnings about unescaped regexs.
(Bitbake rev: 8667605d016e82add95638fcb15c2bbc1b489ecc)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 67af38050e..297a2f45b4 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -39,10 +39,10 @@ from bb.COW import COWDictBase | |||
39 | logger = logging.getLogger("BitBake.Data") | 39 | logger = logging.getLogger("BitBake.Data") |
40 | 40 | ||
41 | __setvar_keyword__ = ["_append", "_prepend", "_remove"] | 41 | __setvar_keyword__ = ["_append", "_prepend", "_remove"] |
42 | __setvar_regexp__ = re.compile('(?P<base>.*?)(?P<keyword>_append|_prepend|_remove)(_(?P<add>[^A-Z]*))?$') | 42 | __setvar_regexp__ = re.compile(r'(?P<base>.*?)(?P<keyword>_append|_prepend|_remove)(_(?P<add>[^A-Z]*))?$') |
43 | __expand_var_regexp__ = re.compile(r"\${[^{}@\n\t :]+}") | 43 | __expand_var_regexp__ = re.compile(r"\${[^{}@\n\t :]+}") |
44 | __expand_python_regexp__ = re.compile(r"\${@.+?}") | 44 | __expand_python_regexp__ = re.compile(r"\${@.+?}") |
45 | __whitespace_split__ = re.compile('(\s)') | 45 | __whitespace_split__ = re.compile(r'(\s)') |
46 | 46 | ||
47 | def infer_caller_details(loginfo, parent = False, varval = True): | 47 | def infer_caller_details(loginfo, parent = False, varval = True): |
48 | """Save the caller the trouble of specifying everything.""" | 48 | """Save the caller the trouble of specifying everything.""" |