From 4753b3619dd0f08185c16e3d3d60b98afdbaa040 Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Tue, 14 Feb 2023 12:36:10 +0100 Subject: Don't use functions from nonexistent py3compat module in demos. commit 36bafee8af15d7743fd9f16b7a6b146b4e90de0e Author: magmaus3 Date: Tue Feb 14 12:36:10 2023 +0100 Don't use functions from nonexistent py3compat module in demos. --- demos/demo_simple.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'demos/demo_simple.py') diff --git a/demos/demo_simple.py b/demos/demo_simple.py index bd932c3e..e0247b0d 100644 --- a/demos/demo_simple.py +++ b/demos/demo_simple.py @@ -25,7 +25,6 @@ import os import socket import sys import traceback -from paramiko.py3compat import input import paramiko @@ -94,9 +93,7 @@ try: ) except Exception: # traceback.print_exc() - password = getpass.getpass( - "Password for %s@%s: " % (username, hostname) - ) + password = getpass.getpass("Password for %s@%s: " % (username, hostname)) client.connect(hostname, port, username, password) chan = client.invoke_shell() -- cgit v1.2.3