From bfc58a910852be57a43ef90218aef0a45c3ad079 Mon Sep 17 00:00:00 2001 From: Alexandre L Date: Mon, 3 Jun 2024 18:41:55 +0200 Subject: [PATCH 1/2] Fix Python 3.12: `SyntaxWarning: invalid escape sequence '\s'` (closes #1312) --- lib/jnpr/junos/transport/tty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jnpr/junos/transport/tty.py b/lib/jnpr/junos/transport/tty.py index 0de9338d0..34ae5ff94 100644 --- a/lib/jnpr/junos/transport/tty.py +++ b/lib/jnpr/junos/transport/tty.py @@ -52,7 +52,7 @@ class Terminal(object): "(?Pogin incorrect)", r"(?P\s*)", r"(?P%|#|(~\$)\s*$)", - '(?P[^\\-"]>\s*$)', + r'(?P[^\-"]>\s*$)', r"(?P