Fix new pylint issues
The new pylint release removed a few rule sets and added a check for generators. This patch updates Octavia for those changes. Change-Id: I2261342377e7acb1d2bc4fc742a351dfc66e4305
This commit is contained in:
parent
74cd04d171
commit
d668e1f205
@ -20,11 +20,9 @@ disable=
|
|||||||
anomalous-backslash-in-string,
|
anomalous-backslash-in-string,
|
||||||
arguments-differ,
|
arguments-differ,
|
||||||
attribute-defined-outside-init,
|
attribute-defined-outside-init,
|
||||||
bad-builtin,
|
|
||||||
broad-except,
|
broad-except,
|
||||||
fixme,
|
fixme,
|
||||||
global-statement,
|
global-statement,
|
||||||
no-init,
|
|
||||||
pointless-string-statement,
|
pointless-string-statement,
|
||||||
protected-access,
|
protected-access,
|
||||||
redefined-builtin,
|
redefined-builtin,
|
||||||
@ -35,13 +33,11 @@ disable=
|
|||||||
unused-variable,
|
unused-variable,
|
||||||
useless-super-delegation,
|
useless-super-delegation,
|
||||||
# "C" Coding convention violations
|
# "C" Coding convention violations
|
||||||
bad-continuation,
|
|
||||||
invalid-name,
|
invalid-name,
|
||||||
line-too-long,
|
line-too-long,
|
||||||
missing-docstring,
|
missing-docstring,
|
||||||
# "R" Refactor recommendations
|
# "R" Refactor recommendations
|
||||||
duplicate-code,
|
duplicate-code,
|
||||||
interface-not-implemented,
|
|
||||||
no-self-use,
|
no-self-use,
|
||||||
too-few-public-methods,
|
too-few-public-methods,
|
||||||
too-many-ancestors,
|
too-many-ancestors,
|
||||||
|
@ -149,7 +149,7 @@ class AmphoraInfo(object):
|
|||||||
'iowait': vals[6],
|
'iowait': vals[6],
|
||||||
'irq': vals[7],
|
'irq': vals[7],
|
||||||
'softirq': vals[8],
|
'softirq': vals[8],
|
||||||
'total': sum([int(i) for i in vals[2:]])
|
'total': sum(int(i) for i in vals[2:])
|
||||||
}
|
}
|
||||||
|
|
||||||
def _load(self):
|
def _load(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user