mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
328fb642f6
commit
ac69ad4ba5
@ -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'))
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user