summaryrefslogtreecommitdiffstats
path: root/wallace/module_signature.py
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2021-06-05 14:44:05 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-01-10 20:51:35 +0100
commitcfdb3e4f7f150bd01b73622662766459f390f10d (patch)
tree6e5d710d6b49ac2f0324d91faae1d325cd6d75b4 /wallace/module_signature.py
parent9a5f92139d3fbe7fa1945d38198a9cdc74831ac5 (diff)
downloadpykolab-cfdb3e4f7f150bd01b73622662766459f390f10d.tar.gz
[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: https://git.kolab.org/D3244
Diffstat (limited to 'wallace/module_signature.py')
-rw-r--r--wallace/module_signature.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wallace/module_signature.py b/wallace/module_signature.py
index dda2d92..c483d93 100644
--- a/wallace/module_signature.py
+++ b/wallace/module_signature.py
@@ -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:
try:
- 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