[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:
Yakun Xu
2025-09-15 16:59:01 -07:00
committed by GitHub
parent 4d4deabe8f
commit ac7fbb4f86
+1 -1
View File
@@ -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 = [