summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2021-10-05 15:49:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-08 16:45:05 +0100
commitcf9cc196dc9b98c54ddae55f2e808d7db27be4f3 (patch)
tree3941c939e7c710bc8dccbc11727133be9846425b /bitbake
parent1c0c82f8babc1b3b00841de41501375692cdaddd (diff)
downloadpoky-cf9cc196dc9b98c54ddae55f2e808d7db27be4f3.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/tests/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/utils.py b/bitbake/lib/bb/tests/utils.py
index 4d5e21b99e..c363f62d7d 100644
--- a/bitbake/lib/bb/tests/utils.py
+++ b/bitbake/lib/bb/tests/utils.py
@@ -418,7 +418,7 @@ MULTILINE = " stuff \\
418 ['MULTILINE'], 418 ['MULTILINE'],
419 handle_var) 419 handle_var)
420 420
421 testvalue = re.sub('\s+', ' ', value_in_callback.strip()) 421 testvalue = re.sub(r'\s+', ' ', value_in_callback.strip())
422 self.assertEqual(expected_value, testvalue) 422 self.assertEqual(expected_value, testvalue)
423 423
424class EditBbLayersConf(unittest.TestCase): 424class EditBbLayersConf(unittest.TestCase):