mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 00:57:47 +00:00
[toranj] fix syntax warning in cli.py (#11931)
This commit fixes the syntax error by declaring the regex pattern as raw string. ``` SyntaxWarning: invalid escape sequence '\d' ```
This commit is contained in:
@@ -162,7 +162,7 @@ class Node(object):
|
||||
_log(f'$ Node{self._index}.cli(\'{cmd}\')', new_line=False)
|
||||
|
||||
self._cli_process.send(cmd + '\n')
|
||||
index = self._cli_process.expect(['(.*)Done\r\n', '.*Error (\d+):(.*)\r\n'])
|
||||
index = self._cli_process.expect([r'(.*)Done\r\n', r'.*Error (\d+):(.*)\r\n'])
|
||||
|
||||
if index == 0:
|
||||
result = [
|
||||
|
||||
Reference in New Issue
Block a user