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 13:59:24 +0000 |
commit | 8667605d016e82add95638fcb15c2bbc1b489ecc (patch) | |
tree | 6f4f1e671443347cc80123f71ac83adc942a4c8d /lib/bb/data_smart.py | |
parent | 91e308992d676ea541b891261e21b840606fc1c4 (diff) | |
download | bitbake-8667605d016e82add95638fcb15c2bbc1b489ecc.tar.gz |
data_smart: Add missing regexp markup
Fix some further python3 warnings about unescaped regexs.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data_smart.py')
-rw-r--r-- | lib/bb/data_smart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index 67af38050..297a2f45b 100644 --- a/lib/bb/data_smart.py +++ b/lib/bb/data_smart.py @@ -39,10 +39,10 @@ from bb.COW import COWDictBase logger = logging.getLogger("BitBake.Data") __setvar_keyword__ = ["_append", "_prepend", "_remove"] -__setvar_regexp__ = re.compile('(?P<base>.*?)(?P<keyword>_append|_prepend|_remove)(_(?P<add>[^A-Z]*))?$') +__setvar_regexp__ = re.compile(r'(?P<base>.*?)(?P<keyword>_append|_prepend|_remove)(_(?P<add>[^A-Z]*))?$') __expand_var_regexp__ = re.compile(r"\${[^{}@\n\t :]+}") __expand_python_regexp__ = re.compile(r"\${@.+?}") -__whitespace_split__ = re.compile('(\s)') +__whitespace_split__ = re.compile(r'(\s)') def infer_caller_details(loginfo, parent = False, varval = True): """Save the caller the trouble of specifying everything.""" |