mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
7b7a5f596f
commit
1a3f01cad4
@@ -585,7 +585,7 @@ class SiblingTest(TreeTest):
|
|||||||
</html>'''
|
</html>'''
|
||||||
# All that whitespace looks good but makes the tests more
|
# All that whitespace looks good but makes the tests more
|
||||||
# difficult. Get rid of it.
|
# difficult. Get rid of it.
|
||||||
markup = re.compile("\n\s*").sub("", markup)
|
markup = re.compile(r"\n\s*").sub("", markup)
|
||||||
self.tree = self.soup(markup)
|
self.tree = self.soup(markup)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user