From f77defe55174d6f42a8a2d824c22530d11db4f7d Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Wed, 1 Apr 2020 15:51:43 -0600 Subject: [PATCH] mgr/orch: fix python3 DeprecationWarning test_orchestrator/module.py:181: DeprecationWarning: invalid escape sequence \s patterns = ['-i\s(\w+)', '--id[\s=](\w+)'] Signed-off-by: Michael Fritch --- src/pybind/mgr/test_orchestrator/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/test_orchestrator/module.py b/src/pybind/mgr/test_orchestrator/module.py index f35321a3f05..4fc125da33a 100644 --- a/src/pybind/mgr/test_orchestrator/module.py +++ b/src/pybind/mgr/test_orchestrator/module.py @@ -178,7 +178,7 @@ class TestOrchestrator(MgrModule, orchestrator.Orchestrator): raise AssertionError('Fail to determine daemon type from {}'.format(p)) # parse daemon ID. Possible options: `-i `, `--id=`, `--id ` - patterns = ['-i\s(\w+)', '--id[\s=](\w+)'] + patterns = [r'-i\s(\w+)', r'--id[\s=](\w+)'] daemon_id = None for pattern in patterns: m = re.search(pattern, p) -- 2.39.5