Skip to content

Commit

Permalink
fix: backslash in regex causing warnings - switch to raw string (#1461)
Browse files Browse the repository at this point in the history
fix for #1460
  • Loading branch information
drstrangelooker authored May 1, 2024
1 parent f093b8d commit 6781219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/looker_sdk/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6781219

Please sign in to comment.