Skip to content

Commit 6a91106

Browse files
committed
reformat
1 parent d8ced24 commit 6a91106

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

tunnel.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
import sshtunnel
55

66
ini_file = 'tunnel.ini'
7-
defaults = {'proxy_port': '22', 'proxy_user': getpass.getuser(), 'remote_host': 'localhost'}
7+
defaults = {
8+
'proxy_port': '22',
9+
'proxy_user': getpass.getuser(),
10+
'remote_host': 'localhost'
11+
}
812

913
config = configparser.ConfigParser(defaults=defaults)
1014

@@ -37,8 +41,8 @@ def tunnel(remote_host, remote_port, local_port=0): # `0` means random port
3741
except KeyError:
3842
# remote host is not in ini file so we don't need a real tunnel
3943
tunnel = MockTunnel(
40-
local_bind_host = remote_host,
41-
local_bind_port = remote_port
44+
local_bind_host = remote_host,
45+
local_bind_port = remote_port
4246
)
4347
else:
4448
tunnel = sshtunnel.SSHTunnelForwarder(

0 commit comments

Comments
 (0)