Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 55fead4

Browse files
authoredNov 1, 2021
Worker.Rsh: use raw string in RshClient (#464)
Fixes the following warning: Rsh.py:77: DeprecationWarning: invalid escape sequence \d match = re.search("^XXRETCODE: (\d+)$", msg.decode()) Signed-off-by: Stephane Thiell <[email protected]>
1 parent 74c3a10 commit 55fead4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/ClusterShell/Worker/Rsh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _build_cmd(self):
7474

7575
def _on_nodeset_msgline(self, nodes, msg, sname):
7676
"""Override _on_nodeset_msgline to parse magic return code"""
77-
match = re.search("^XXRETCODE: (\d+)$", msg.decode())
77+
match = re.search(r"^XXRETCODE: (\d+)$", msg.decode())
7878
if match:
7979
self.rsh_rc = int(match.group(1))
8080
else:

0 commit comments

Comments
 (0)
Please sign in to comment.