Skip to content

Commit

Permalink
python3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
chidanandpujar committed Nov 29, 2023
1 parent a8e2dff commit 5014e06
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/jnpr/junos/utils/start_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand All @@ -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()

Expand Down

0 comments on commit 5014e06

Please sign in to comment.