summaryrefslogtreecommitdiffstats
path: root/sshuttle/methods
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2022-08-05 08:00:56 +1000
committerBrian May <brian@linuxpenguins.xyz>2022-08-05 08:00:56 +1000
commitf8086dfa590f742561ffc1f4b4363da3f3cf4069 (patch)
tree1defb901c1e854f3adf0a9f094f0361d4455f87c /sshuttle/methods
parent58d72a93d265955c609396f79142a491a994c7c2 (diff)
Update flake8 and pyflakes
Diffstat (limited to 'sshuttle/methods')
-rw-r--r--sshuttle/methods/ipfw.py4
-rw-r--r--sshuttle/methods/tproxy.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/sshuttle/methods/ipfw.py b/sshuttle/methods/ipfw.py
index 1a31e02..74fd9f7 100644
--- a/sshuttle/methods/ipfw.py
+++ b/sshuttle/methods/ipfw.py
@@ -52,7 +52,7 @@ def _fill_oldctls(prefix):
p = ssubprocess.Popen(argv, stdout=ssubprocess.PIPE, env=get_env())
for line in p.stdout:
line = line.decode()
- assert(line[-1] == '\n')
+ assert line[-1] == '\n'
(k, v) = line[:-1].split(': ', 1)
_oldctls[k] = v.strip()
rv = p.wait()
@@ -74,7 +74,7 @@ _changedctls = []
def sysctl_set(name, val, permanent=False):
PREFIX = 'net.inet.ip'
- assert(name.startswith(PREFIX + '.'))
+ assert name.startswith(PREFIX + '.')
val = str(val)
if not _oldctls:
_fill_oldctls(PREFIX)
diff --git a/sshuttle/methods/tproxy.py b/sshuttle/methods/tproxy.py
index 3450433..1d2ae29 100644
--- a/sshuttle/methods/tproxy.py
+++ b/sshuttle/methods/tproxy.py
@@ -127,7 +127,7 @@ class Method(BaseMethod):
def _ipt_proto_ports(proto, fport, lport):
return proto + ('--dport', '%d:%d' % (fport, lport)) \
- if fport else proto
+ if fport else proto
mark_chain = 'sshuttle-m-%s' % port
tproxy_chain = 'sshuttle-t-%s' % port