pylint: disable modified-iterating-list

Related: https://pagure.io/freeipa/issue/9278

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Stanislav Levin <slev@altlinux.org>
This commit is contained in:
Florence Blanc-Renaud 2022-11-21 09:31:01 +01:00
parent 328fb642f6
commit ac69ad4ba5
2 changed files with 4 additions and 4 deletions

View File

@ -803,11 +803,11 @@ class schema(Command):
for entry in to_process:
if isinstance(entry, (list, tuple)):
for item in entry:
to_process.append(item)
to_process.append(item) # pylint: disable=W4701
elif isinstance(entry, dict):
for key in sorted(entry.keys()):
to_process.append(key)
to_process.append(entry[key])
to_process.append(key) # pylint: disable=W4701
to_process.append(entry[key]) # pylint: disable=W4701
else:
fingerprint.update(unicode(entry).encode('utf-8'))

View File

@ -1360,7 +1360,7 @@ def two_connected_topo(master, replicas):
x = pool.pop(0)
yield v, x
yield w, x
grow.append((w, x))
grow.append((w, x)) # pylint: disable=modified-iterating-list
except IndexError:
return