aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-09-16 22:22:36 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-16 22:16:03 +0100
commit8d3c6cbbe6ee734495713ae3b99c609527842506 (patch)
tree1d26955a3e588ebc8b3918376d28933f6fe2edd4
parent76c9030d6c91cd776a1aa732fb92b7cd4539b503 (diff)
downloadbitbake-8d3c6cbbe6ee734495713ae3b99c609527842506.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>
-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 73e33ee10..ec7bb561c 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -409,7 +409,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