summaryrefslogtreecommitdiffhomepage
path: root/demos/demo_sftp.py
diff options
context:
space:
mode:
Diffstat (limited to 'demos/demo_sftp.py')
-rw-r--r--demos/demo_sftp.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/demos/demo_sftp.py b/demos/demo_sftp.py
index dbcb2cb7..9d85237f 100644
--- a/demos/demo_sftp.py
+++ b/demos/demo_sftp.py
@@ -28,7 +28,6 @@ import sys
import traceback
import paramiko
-from paramiko.py3compat import input
# setup logging
@@ -72,9 +71,7 @@ else:
hostkeytype = None
hostkey = None
try:
- host_keys = paramiko.util.load_host_keys(
- os.path.expanduser("~/.ssh/known_hosts")
- )
+ host_keys = paramiko.util.load_host_keys(os.path.expanduser("~/.ssh/known_hosts"))
except IOError:
try:
# try ~/ssh/ too, because windows can't have a folder named ~/.ssh/