diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-11-22 10:24:44 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-24 10:08:28 +0000 |
commit | aaf40f1d436fbfe25875c82557dc122074ddb9e3 (patch) | |
tree | 9e9b18d9fd59ebdc7d84a32a99a88e70f5e76228 | |
parent | 9c8e132abd2f386a2e822eca412b9acdf4a016fc (diff) | |
download | poky-aaf40f1d436fbfe25875c82557dc122074ddb9e3.tar.gz |
bitbake: bitbake: adjust parser error check for python 3.10 compatibility
The change was introduced in
https://github.com/python/cpython/commit/a698d52c3975c80b45b139b2f08402ec514dce75
(Bitbake rev: 946f8f57a3e17fcb19a205e8a8a4b91a45a32f2e)
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: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index aa9ac2c8de..65857a9c79 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -403,7 +403,7 @@ class DataSmart(MutableMapping): | |||
403 | s = __expand_python_regexp__.sub(varparse.python_sub, s) | 403 | s = __expand_python_regexp__.sub(varparse.python_sub, s) |
404 | except SyntaxError as e: | 404 | except SyntaxError as e: |
405 | # Likely unmatched brackets, just don't expand the expression | 405 | # Likely unmatched brackets, just don't expand the expression |
406 | if e.msg != "EOL while scanning string literal": | 406 | if e.msg != "EOL while scanning string literal" and not e.msg.startswith("unterminated string literal"): |
407 | raise | 407 | raise |
408 | if s == olds: | 408 | if s == olds: |
409 | break | 409 | break |