Skip to content

Commit

Permalink
[lldb] Fixed SyntaxWarning: invalid escape sequence \[ \d \s (#91146)
Browse files Browse the repository at this point in the history
Reproduced with Python 3.12.3
  • Loading branch information
slydiman authored May 9, 2024
1 parent 04ce103 commit ba66dfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ def setUp(self):
self.stub_sends_two_stop_notifications_on_kill = False
if configuration.lldb_platform_url:
if configuration.lldb_platform_url.startswith("unix-"):
url_pattern = "(.+)://\[?(.+?)\]?/.*"
url_pattern = r"(.+)://\[?(.+?)\]?/.*"
else:
url_pattern = "(.+)://(.+):\d+"
url_pattern = r"(.+)://(.+):\d+"
scheme, host = re.match(
url_pattern, configuration.lldb_platform_url
).groups()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_debugserver_exe():


_LOG_LINE_REGEX = re.compile(
r"^(lldb-server|debugserver)\s+<\s*(\d+)>" + "\s+(read|send)\s+packet:\s+(.+)$"
r"^(lldb-server|debugserver)\s+<\s*(\d+)>\s+(read|send)\s+packet:\s+(.+)$"
)


Expand Down

0 comments on commit ba66dfb

Please sign in to comment.