pylint: fix unneeded-not

Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
Jan Barta
2016-06-03 10:05:34 +02:00
committed by Martin Basti
parent 36484e8672
commit 275e85d076
11 changed files with 14 additions and 15 deletions

View File

@@ -909,7 +909,7 @@ last, after all sets and adds."""),
newdict = {}
if attrs is None:
attrs = []
elif not type(attrs) in (list, tuple):
elif type(attrs) not in (list, tuple):
attrs = [attrs]
for a in attrs:
m = re.match("\s*(.*?)\s*=\s*(.*?)\s*$", a)