From ae24926b4a6492ecf37bf449c6a8f0a7b10e248d Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Wed, 18 Jan 2023 12:17:49 +0100 Subject: [PATCH] Minor fix of regex encoding --- openeo/rest/datacube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openeo/rest/datacube.py b/openeo/rest/datacube.py index 4ac6ba977..88c267b56 100644 --- a/openeo/rest/datacube.py +++ b/openeo/rest/datacube.py @@ -151,7 +151,7 @@ def _guess_runtime(self, connection: "openeo.Connection") -> str: language = self._guess_runtime_from_suffix(url_match.group("suffix")) if not language: # Guess language from UDF code - if re.search("^def [\w0-9_]+\(", self.code, flags=re.MULTILINE): + if re.search(r"^def [\w0-9_]+\(", self.code, flags=re.MULTILINE): language = "Python" # TODO: detection heuristics for R and other languages? if not language: