From: Michael Fritch Date: Mon, 4 May 2020 18:37:11 +0000 (-0600) Subject: mgr/insights: fix python3 DeprecationWarning X-Git-Tag: v16.1.0~2377^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=41ffb701eca6280df00cd526edfce3a9c851b53b;p=ceph.git mgr/insights: fix python3 DeprecationWarning insights/module.py:167: DeprecationWarning: invalid escape sequence \d r = "ceph version (?P\d+)\.(?P\d+)\.(?P\d+)" Signed-off-by: Michael Fritch --- diff --git a/src/pybind/mgr/insights/module.py b/src/pybind/mgr/insights/module.py index a7a12fb7b25..a640d85b746 100644 --- a/src/pybind/mgr/insights/module.py +++ b/src/pybind/mgr/insights/module.py @@ -164,7 +164,7 @@ class Module(MgrModule): constituent components, such as when Ceph has been built with ENABLE_GIT_VERSION=OFF. """ - r = "ceph version (?P\d+)\.(?P\d+)\.(?P\d+)" + r = r"ceph version (?P\d+)\.(?P\d+)\.(?P\d+)" m = re.match(r, version) ver = {} if not m else { "release": m.group("release"),