aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-11-22 10:24:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-24 10:08:02 +0000
commit946f8f57a3e17fcb19a205e8a8a4b91a45a32f2e (patch)
tree5cb417c299176b0eddbdc4db12a5b2b652f6fe27
parent35ca8e9fcc20a8ee9efb1356a957e054ad5532d8 (diff)
downloadbitbake-946f8f57a3e17fcb19a205e8a8a4b91a45a32f2e.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: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index aa9ac2c8d..65857a9c7 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