diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-05-19 09:52:54 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-05-19 09:52:54 +0200 |
commit | 1805e4abc8a90b77d79af3d30baa71df4936aa77 (patch) | |
tree | 7118d2c1f7ec767cad0116704e8793d1a1c531e4 | |
parent | 92660aede3c6bfbf3a71e3f8aff6998929b19f4e (diff) | |
download | psutil-1805e4abc8a90b77d79af3d30baa71df4936aa77.tar.gz |
adjust flake8
-rw-r--r-- | .flake8 | 2 | ||||
-rw-r--r-- | psutil/_pswindows.py | 8 |
2 files changed, 4 insertions, 6 deletions
@@ -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 |