diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-10-19 10:06:13 -1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-23 17:47:26 +0100 |
commit | e0d6af2f6885c93f94c7fbcaeb7b0336c05f02b0 (patch) | |
tree | 247420a210e2809182af46e13fbc85c297091028 | |
parent | 2dca6a22cb7b911c905a10158f1a3c3258de5c11 (diff) | |
download | bitbake-contrib-e0d6af2f6885c93f94c7fbcaeb7b0336c05f02b0.tar.gz |
bitbake: adjust parser error check for python 3.10 compatibility
The change was introduced in
https://github.com/python/cpython/commit/a698d52c3975c80b45b139b2f08402ec514dce75
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8d3c6cbbe6ee734495713ae3b99c609527842506)
Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/data_smart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index c8d2a4372..c46d3f0a0 100644 --- a/lib/bb/data_smart.py +++ b/lib/bb/data_smart.py @@ -403,7 +403,7 @@ class DataSmart(MutableMapping): s = __expand_python_regexp__.sub(varparse.python_sub, s) except SyntaxError as e: # Likely unmatched brackets, just don't expand the expression - if e.msg != "EOL while scanning string literal": + if e.msg != "EOL while scanning string literal" and not e.msg.startswith("unterminated string literal"): raise if s == olds: break |