Skip to content

Commit ba66dfb

Browse files
authored
[lldb] Fixed SyntaxWarning: invalid escape sequence \[ \d \s (#91146)
Reproduced with Python 3.12.3
1 parent 04ce103 commit ba66dfb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ def setUp(self):
130130
self.stub_sends_two_stop_notifications_on_kill = False
131131
if configuration.lldb_platform_url:
132132
if configuration.lldb_platform_url.startswith("unix-"):
133-
url_pattern = "(.+)://\[?(.+?)\]?/.*"
133+
url_pattern = r"(.+)://\[?(.+?)\]?/.*"
134134
else:
135-
url_pattern = "(.+)://(.+):\d+"
135+
url_pattern = r"(.+)://(.+):\d+"
136136
scheme, host = re.match(
137137
url_pattern, configuration.lldb_platform_url
138138
).groups()

lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_debugserver_exe():
5050

5151

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

5656

0 commit comments

Comments
 (0)