summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-10-19 10:06:13 -1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-23 17:47:38 +0100
commitc71964cd2980a4f088904201f69f76ac164b4015 (patch)
tree15ee21383a58086ce54ff36c19ab05bc9c1f6663 /bitbake
parente54b102483e9713666fa369239a7570f59adf85a (diff)
downloadpoky-c71964cd2980a4f088904201f69f76ac164b4015.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: e0d6af2f6885c93f94c7fbcaeb7b0336c05f02b0) 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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index c8d2a43724..c46d3f0a08 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