diff options
author | Adrian Freihofer <adrian.freihofer@gmail.com> | 2024-02-10 14:15:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-13 13:52:10 +0000 |
commit | 1a3f01cad47b67fe326bc690103bf347f587f99a (patch) | |
tree | b90773c01b12913894065cd81b357e9ea8ed586b | |
parent | 7b7a5f596fcd6396b9da3d47f422578b86244ea1 (diff) | |
download | poky-1a3f01cad47b67fe326bc690103bf347f587f99a.tar.gz |
bitbake: bitbake/lib/bs4/tests/test_tree.py: python 3.12 regex
Python 3 interprets string literals as Unicode strings, and therefore
\s is treated as an escaped Unicode character which is not correct.
Declaring the RegEx pattern as a raw string instead of unicode is
required for Python 3.
(Bitbake rev: a5f1bc69ef2e456bd163303a07cfb73825b01576)
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bs4/tests/test_tree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bs4/tests/test_tree.py b/bitbake/lib/bs4/tests/test_tree.py index 8e5c66426e..cf0f1abe0c 100644 --- a/bitbake/lib/bs4/tests/test_tree.py +++ b/bitbake/lib/bs4/tests/test_tree.py | |||
@@ -585,7 +585,7 @@ class SiblingTest(TreeTest): | |||
585 | </html>''' | 585 | </html>''' |
586 | # All that whitespace looks good but makes the tests more | 586 | # All that whitespace looks good but makes the tests more |
587 | # difficult. Get rid of it. | 587 | # difficult. Get rid of it. |
588 | markup = re.compile("\n\s*").sub("", markup) | 588 | markup = re.compile(r"\n\s*").sub("", markup) |
589 | self.tree = self.soup(markup) | 589 | self.tree = self.soup(markup) |
590 | 590 | ||
591 | 591 | ||