bitbake: tests/utils: mark a regex as a raw string

Avoids a warning from Python as \s isn't a valid escape.

(Bitbake rev: be39c2e926beebe78030fbe26c6737f08f960fcb)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2021-10-05 15:49:58 +01:00
committed by Richard Purdie
parent 1c0c82f8ba
commit cf9cc196dc

View File

@@ -418,7 +418,7 @@ MULTILINE = " stuff \\
['MULTILINE'],
handle_var)
testvalue = re.sub('\s+', ' ', value_in_callback.strip())
testvalue = re.sub(r'\s+', ' ', value_in_callback.strip())
self.assertEqual(expected_value, testvalue)
class EditBbLayersConf(unittest.TestCase):