summaryrefslogtreecommitdiffhomepage
path: root/demos/forward.py
diff options
context:
space:
mode:
Diffstat (limited to 'demos/forward.py')
-rw-r--r--demos/forward.py10
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)