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/rforward.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/rforward.py')
-rwxr-xr-x | demos/rforward.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/demos/rforward.py b/demos/rforward.py index 200634ab..e3d4e016 100755 --- a/demos/rforward.py +++ b/demos/rforward.py @@ -77,9 +77,7 @@ def reverse_forward_tunnel(server_port, remote_host, remote_port, transport): chan = transport.accept(1000) if chan is None: continue - thr = threading.Thread( - target=handler, args=(chan, remote_host, remote_port) - ) + thr = threading.Thread(target=handler, args=(chan, remote_host, remote_port)) thr.setDaemon(True) thr.start() @@ -136,8 +134,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", |