summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2020-05-21 08:37:22 +0000
committerBrian May <brian@linuxpenguins.xyz>2020-05-22 08:10:45 +1000
commitcf32a5cfa8aabda3d8a304fd8ae0964add4169a0 (patch)
tree604b8cf9fb0a26589547f8a3b85e3ae8616a687e
parentf674aacdc87fbcc53633fddc7ef4d3f622126378 (diff)
Bump flake8 from 3.6.0 to 3.8.1
Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.6.0 to 3.8.1. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.6.0...3.8.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
-rw-r--r--requirements-tests.txt2
-rw-r--r--sshuttle/ssnet.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/requirements-tests.txt b/requirements-tests.txt
index d7f65a9..b7edffd 100644
--- a/requirements-tests.txt
+++ b/requirements-tests.txt
@@ -3,5 +3,5 @@ attrs==19.3.0
pytest==5.4.2
pytest-cov==2.8.1
mock==2.0.0
-flake8==3.6.0
+flake8==3.8.1
pyflakes==2.2.0
diff --git a/sshuttle/ssnet.py b/sshuttle/ssnet.py
index 5f30c42..f6044aa 100644
--- a/sshuttle/ssnet.py
+++ b/sshuttle/ssnet.py
@@ -61,14 +61,14 @@ NET_ERRS = [errno.ECONNREFUSED, errno.ETIMEDOUT,
errno.ECONNRESET]
-def _add(l, elem):
- if elem not in l:
- l.append(elem)
+def _add(socks, elem):
+ if elem not in socks:
+ socks.append(elem)
-def _fds(l):
+def _fds(socks):
out = []
- for i in l:
+ for i in socks:
try:
out.append(i.fileno())
except AttributeError: