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/forward.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/forward.py')
-rw-r--r-- | demos/forward.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/demos/forward.py b/demos/forward.py index 869e3906..fe60e297 100644 --- a/demos/forward.py +++ b/demos/forward.py @@ -163,8 +163,7 @@ def parse_options(): type="string", dest="user", default=getpass.getuser(), - help="username for SSH authentication (default: %s)" - % getpass.getuser(), + help="username for SSH authentication (default: %s)" % getpass.getuser(), ) parser.add_option( "-K", @@ -240,14 +239,11 @@ def main(): sys.exit(1) verbose( - "Now forwarding port %d to %s:%d ..." - % (options.port, remote[0], remote[1]) + "Now forwarding port %d to %s:%d ..." % (options.port, remote[0], remote[1]) ) try: - forward_tunnel( - options.port, remote[0], remote[1], client.get_transport() - ) + forward_tunnel(options.port, remote[0], remote[1], client.get_transport()) except KeyboardInterrupt: print("C-c: Port forwarding stopped.") sys.exit(0) |