From cf32a5cfa8aabda3d8a304fd8ae0964add4169a0 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 21 May 2020 08:37:22 +0000 Subject: [PATCH] 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] --- requirements-tests.txt | 2 +- sshuttle/ssnet.py | 10 +++++----- 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: