From 5014e06c97cba2f05a44faded4e05c958a3d7fe2 Mon Sep 17 00:00:00 2001 From: chidanandpujar Date: Wed, 29 Nov 2023 16:22:33 +0530 Subject: [PATCH] python3.12 support --- lib/jnpr/junos/utils/start_shell.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/jnpr/junos/utils/start_shell.py b/lib/jnpr/junos/utils/start_shell.py index 260a364eb..7d9fe9209 100644 --- a/lib/jnpr/junos/utils/start_shell.py +++ b/lib/jnpr/junos/utils/start_shell.py @@ -71,7 +71,6 @@ def wait_for(self, this=_SHELL_PROMPT, timeout=0, sleep=0): timeout = timeout or self.timeout timeout = datetime.datetime.now() + datetime.timedelta(seconds=timeout) while timeout > datetime.datetime.now(): - print("Debug2 wait_for", self.ON_JUNOS) if self.ON_JUNOS is True: data = chan.stdout.readline() else: @@ -113,9 +112,8 @@ def open(self): drop into the Junos shell (csh). This process opens a :class:`paramiko.SSHClient` instance. """ - print("Debug1 open", self.ON_JUNOS) if self.ON_JUNOS is True: - print("Debug1", self.ON_JUNOS) + print("Debug1 open", self.ON_JUNOS) self._chan = subprocess.Popen( ["cli", "start", "shell", self.shell_type], shell=False, @@ -125,7 +123,6 @@ def open(self): bufsize=0, ) else: - print("Debug2 open", self.ON_JUNOS) self._client = open_ssh_client(dev=self._nc) self._chan = self._client.invoke_shell()