From 148f96fd6d4b8b1f34951d1e9371a629e960a6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Thu, 1 Feb 2024 09:18:41 +0000 Subject: [PATCH] Use raw string to avoid SyntaxWarning in Python 3.12 --- src/omero/plugins/import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/omero/plugins/import.py b/src/omero/plugins/import.py index a296950f7..7f73ce661 100644 --- a/src/omero/plugins/import.py +++ b/src/omero/plugins/import.py @@ -571,7 +571,7 @@ def _userdir_jars(self, parentonly=False): return None, omero_java_txt def download_omero_java(self, version_or_uri): - if re.match("^\w+://", version_or_uri): + if re.match(r"^\w+://", version_or_uri): omero_java_zip = version_or_uri else: omero_java_zip = OMERO_JAVA_ZIP.format(version=version_or_uri)