From 585b73a1902f0d4e839bcca8a5bdff74c2e0f034 Mon Sep 17 00:00:00 2001 From: Mike DeAngelo Date: Wed, 1 May 2024 13:27:19 -0400 Subject: [PATCH] fix: backslash in regex causing warnings - switch to raw string --- python/looker_sdk/error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/looker_sdk/error.py b/python/looker_sdk/error.py index df15def31..b29ee3361 100644 --- a/python/looker_sdk/error.py +++ b/python/looker_sdk/error.py @@ -99,7 +99,7 @@ class ErrorDocHelper: ERROR_CODES_URL: str = "https://static-a.cdn.looker.app/errorcodes/" lookup_dict: Dict[str, Dict[str, str]] = {} RE_PATTERN: str = ( - """(https://docs\.looker\.com/r/err/|https://cloud\.google\.com/looker/docs/r/err/)(.*)/(\d{3})(.*)""" + r'(https://docs\.looker\.com/r/err/|https://cloud\.google\.com/looker/docs/r/err/)(.*)/(\d{3})(.*)' ) pattern = re.compile(RE_PATTERN, flags=re.IGNORECASE)