diff options
author | Trevor Gamblin <tgamblin@baylibre.com> | 2024-01-02 11:52:58 -0500 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-02-07 04:00:02 -1000 |
commit | 89b80f507ff84cbadc2536b8e357c67e020e4db6 (patch) | |
tree | 1ea39e872fa83309ce82c24064eca18b038a72bb /scripts/lib/devtool/sdk.py | |
parent | 84d3e21ba8ba67676dab23dd59e5d638ef016384 (diff) | |
download | poky-89b80f507ff84cbadc2536b8e357c67e020e4db6.tar.gz |
scripts/runqemu: fix regex escape sequences
When invoking runqemu with Python 3.12, the following warning is
encountered:
|SyntaxWarning: invalid escape sequence '\.'
This is because the interpreter scans the string before it is processed
by the regex module, and it interprets the backslash as part of an
escape sequence, but not a standard one. This will be registered as an
error rather than a warning in future Python versions. To avoid the it,
simply add an extra backslash so that Python doesn't misinterpret the
string, while the regex parser still sees an escaped '.' character.
(From OE-Core rev: 145672043d6d75a9e5a03afb4c205e8008218a3b)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0e8a4142bb90a92d175df6b2537d24a372356f98)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/lib/devtool/sdk.py')
0 files changed, 0 insertions, 0 deletions