diff options
author | magmaus3 <magmaus3@disroot.org> | 2023-02-14 12:36:10 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-08-02 22:07:45 +0200 |
commit | 4753b3619dd0f08185c16e3d3d60b98afdbaa040 (patch) | |
tree | 62b2ad6b595977471f649671ae7c5bb66282088c /demos/demo_sftp.py | |
parent | d5117fc7988e3ede445ca09d7ffc95d4263445c3 (diff) |
Don't use functions from nonexistent py3compat module in demos.py3compat
commit 36bafee8af15d7743fd9f16b7a6b146b4e90de0e
Author: magmaus3 <magmaus3@disroot.org>
Date: Tue Feb 14 12:36:10 2023 +0100
Don't use functions from nonexistent py3compat module in demos.
Diffstat (limited to 'demos/demo_sftp.py')
-rw-r--r-- | demos/demo_sftp.py | 5 |
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/ |