summaryrefslogtreecommitdiffstats
path: root/sshuttle
diff options
context:
space:
mode:
authorJohnHay <john@sanren.ac.za>2021-12-21 16:12:11 +0200
committerJohnHay <john@sanren.ac.za>2021-12-21 16:12:11 +0200
commite6f076e1a5d1d4d452ea44eeabfaee8ff528b8ad (patch)
tree9dd1ff354720d6dc91e40ca57062f666dc5e57d3 /sshuttle
parent2665b67926464cc2371702c287ac6a5d6657c221 (diff)
Make flake8 happy.
Diffstat (limited to 'sshuttle')
-rw-r--r--sshuttle/methods/ipfw.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sshuttle/methods/ipfw.py b/sshuttle/methods/ipfw.py
index e650200..090b2ed 100644
--- a/sshuttle/methods/ipfw.py
+++ b/sshuttle/methods/ipfw.py
@@ -33,7 +33,7 @@ def ipfw_rule_exists(n):
found = False
for line in p.stdout:
if line.startswith(b'%05d ' % n):
- if not 'check-state :sshuttle' in line:
+ if 'check-state :sshuttle' not in line:
log('non-sshuttle ipfw rule: %r' % line.strip())
raise Fatal('non-sshuttle ipfw rule #%d already exists!' % n)
found = True
@@ -201,8 +201,8 @@ class Method(BaseMethod):
if subnets:
# create new subnet entries
for _, swidth, sexclude, snet, fport, lport in sorted(subnets,
- key=lambda s: s[1],
- reverse=True):
+ key=lambda s: s[1],
+ reverse=True):
if sexclude:
ipfw('table', '125', 'add', '%s/%s' % (snet, swidth))
else: