Bump pre-commit-hooks to v4.1.0
[integration/test.git] / tools / clustering / cluster-deployer / deploy.py
index 62cb38ab429ba95f4ff0c5ba6080522386a5b9d2..ed14b00179def672908ea05a5084f45e392a4b70 100755 (executable)
@@ -181,11 +181,11 @@ class Deployer:
         # Determine distribution version
         distribution_name = os.path.splitext(os.path.basename(self.distribution))[0]
         distribution_ver = re.search(
-            "(\d+\.\d+\.\d+-\w+\Z)|"
-            "(\d+\.\d+\.\d+-\w+)(-RC\d+\Z)|"
-            "(\d+\.\d+\.\d+-\w+)(-RC\d+(\.\d+)\Z)|"
-            "(\d+\.\d+\.\d+-\w+)(-SR\d+\Z)|"
-            "(\d+\.\d+\.\d+-\w+)(-SR\d+(\.\d+)\Z)",
+            r"(\d+\.\d+\.\d+-\w+\Z)|"
+            r"(\d+\.\d+\.\d+-\w+)(-RC\d+\Z)|"
+            r"(\d+\.\d+\.\d+-\w+)(-RC\d+(\.\d+)\Z)|"
+            r"(\d+\.\d+\.\d+-\w+)(-SR\d+\Z)|"
+            r"(\d+\.\d+\.\d+-\w+)(-SR\d+(\.\d+)\Z)",
             distribution_name,
         )  # noqa