summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-05-19 09:52:54 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2020-05-19 09:52:54 +0200
commit1805e4abc8a90b77d79af3d30baa71df4936aa77 (patch)
tree7118d2c1f7ec767cad0116704e8793d1a1c531e4
parent92660aede3c6bfbf3a71e3f8aff6998929b19f4e (diff)
downloadpsutil-1805e4abc8a90b77d79af3d30baa71df4936aa77.tar.gz
adjust flake8
-rw-r--r--.flake82
-rw-r--r--psutil/_pswindows.py8
2 files changed, 4 insertions, 6 deletions
diff --git a/.flake8 b/.flake8
index e125df09..15efab52 100644
--- a/.flake8
+++ b/.flake8
@@ -4,8 +4,6 @@
[flake8]
ignore =
- # ambiguous variable name 'l'
- E741,
# line break after binary operator
W504
per-file-ignores =
diff --git a/psutil/_pswindows.py b/psutil/_pswindows.py
index c1707db7..98baef59 100644
--- a/psutil/_pswindows.py
+++ b/psutil/_pswindows.py
@@ -1066,11 +1066,11 @@ class Process(object):
@wrap_exceptions
def cpu_affinity_set(self, value):
- def to_bitmask(l):
- if not l:
- raise ValueError("invalid argument %r" % l)
+ def to_bitmask(ls):
+ if not ls:
+ raise ValueError("invalid argument %r" % ls)
out = 0
- for b in l:
+ for b in ls:
out |= 2 ** b
return out