From ac69ad4ba5ec644fbb1b2768237fd2412d7e3101 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Mon, 21 Nov 2022 09:31:01 +0100 Subject: [PATCH] pylint: disable modified-iterating-list Related: https://pagure.io/freeipa/issue/9278 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Stanislav Levin --- ipaserver/plugins/schema.py | 6 +++--- ipatests/pytest_ipa/integration/tasks.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ipaserver/plugins/schema.py b/ipaserver/plugins/schema.py index 9486047bb..7888c9bb5 100644 --- a/ipaserver/plugins/schema.py +++ b/ipaserver/plugins/schema.py @@ -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')) diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index 08544d496..560865696 100755 --- a/ipatests/pytest_ipa/integration/tasks.py +++ b/ipatests/pytest_ipa/integration/tasks.py @@ -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