Skip to content

Commit b37ad6a

Browse files
authored
Fix type warning for invalid escape in string (#1003)
Fixes the following type checker warning: ``` mobly/controllers/attenuator_lib/telnet_scpi_client.py:73: SyntaxWarning: invalid escape sequence '\S' [_ascii_string("\S+" + self.rx_cmd_separator)], 1 ```
1 parent 4887649 commit b37ad6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mobly/controllers/attenuator_lib/telnet_scpi_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def cmd(self, cmd_str, wait_ret=True):
7070
return None
7171

7272
match_idx, match_val, ret_text = self._tn.expect(
73-
[_ascii_string("\S+" + self.rx_cmd_separator)], 1
73+
[_ascii_string(r"\S+" + self.rx_cmd_separator)], 1
7474
)
7575

7676
if match_idx == -1:

0 commit comments

Comments
 (0)