diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-09-16 22:22:36 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-17 07:26:24 +0100 |
commit | 97dc3ef38631627fa0a12c398ea708ed1b5bf759 (patch) | |
tree | 4635ebb77aee3c19e31243b41d83be2a2fa952b3 /bitbake/lib/bb/data_smart.py | |
parent | f7909da79f2b8b195debf63586c2d343ad42ae18 (diff) | |
download | poky-97dc3ef38631627fa0a12c398ea708ed1b5bf759.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: 8d3c6cbbe6ee734495713ae3b99c609527842506)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-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 73e33ee10e..ec7bb561cc 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -409,7 +409,7 @@ class DataSmart(MutableMapping): | |||
409 | s = __expand_python_regexp__.sub(varparse.python_sub, s) | 409 | s = __expand_python_regexp__.sub(varparse.python_sub, s) |
410 | except SyntaxError as e: | 410 | except SyntaxError as e: |
411 | # Likely unmatched brackets, just don't expand the expression | 411 | # Likely unmatched brackets, just don't expand the expression |
412 | if e.msg != "EOL while scanning string literal": | 412 | if e.msg != "EOL while scanning string literal" and not e.msg.startswith("unterminated string literal"): |
413 | raise | 413 | raise |
414 | if s == olds: | 414 | if s == olds: |
415 | break | 415 | break |