Skip to content

Commit ae24926

Browse files
committed
Minor fix of regex encoding
1 parent 8434be3 commit ae24926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openeo/rest/datacube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _guess_runtime(self, connection: "openeo.Connection") -> str:
151151
language = self._guess_runtime_from_suffix(url_match.group("suffix"))
152152
if not language:
153153
# Guess language from UDF code
154-
if re.search("^def [\w0-9_]+\(", self.code, flags=re.MULTILINE):
154+
if re.search(r"^def [\w0-9_]+\(", self.code, flags=re.MULTILINE):
155155
language = "Python"
156156
# TODO: detection heuristics for R and other languages?
157157
if not language:

0 commit comments

Comments
 (0)