From 3dbe7d95c6150082b5ba9eaf6ca988ed51e98807 Mon Sep 17 00:00:00 2001 From: Dinesh babu Date: Tue, 8 Oct 2024 10:00:05 +0530 Subject: [PATCH] Revert "Fix Python 3.12: `SyntaxWarning: invalid escape sequence '\s'` (closes #1312)" --- lib/jnpr/junos/transport/tty.py | 2 +- tests/unit/factory/test_cmdtable.py | 26 +++++++++++++------------- tests/unit/test_console.py | 16 ++++++++-------- tests/unit/test_rpcmeta.py | 2 +- tests/unit/utils/test_start_shell.py | 4 ++-- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/lib/jnpr/junos/transport/tty.py b/lib/jnpr/junos/transport/tty.py index 34ae5ff94..0de9338d0 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*$)", - r'(?P[^\-"]>\s*$)', + '(?P[^\\-"]>\s*$)', r"(?P