path: root/wallace/
diff options
authorChristoph Erhardt <>2021-06-05 14:44:05 +0200
committerChristoph Erhardt <>2022-01-10 20:51:35 +0100
commitcfdb3e4f7f150bd01b73622662766459f390f10d (patch)
tree6e5d710d6b49ac2f0324d91faae1d325cd6d75b4 /wallace/
parent9a5f92139d3fbe7fa1945d38198a9cdc74831ac5 (diff)
[Python 3] Use .items() instead of .iteritems()
Summary: .iteritems() was dropped in Python 3.0. This commit may have a negative performance impact on Python 2 since .items() returns a copy of the dictionary's item list. In Python 3, .items() returns a view object, so no performance drop should be noticeable there. Reviewers: machniak, mollekopf Reviewed By: mollekopf Subscribers: mollekopf Differential Revision:
Diffstat (limited to 'wallace/')
1 files changed, 1 insertions, 1 deletions
diff --git a/wallace/ b/wallace/
index dda2d92..c483d93 100644
--- a/wallace/
+++ b/wallace/
@@ -163,7 +163,7 @@ def execute(*args, **kw): # noqa: C901
if not signature_html and not signature_text and signature_rules is not None:
for signature_rule in signature_rules:
- for attr, regex in signature_rule.iteritems():
+ for attr, regex in signature_rule.items():
if attr == "html":
if not os.path.exists(signature_rule['html']):
raise ValueError