From abccef2c4222b19dcd1c6cd90ae95ddff6a71c24 Mon Sep 17 00:00:00 2001 From: ivermac Date: Wed, 25 Jul 2018 10:53:27 +0300 Subject: [PATCH] Use .items() instead .iteritems() .items() can be used in dicts in both python 2 and 3 Signed-off-by: ivermac --- onadata/libs/utils/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onadata/libs/utils/email.py b/onadata/libs/utils/email.py index 2df50bea05..a26c71014b 100644 --- a/onadata/libs/utils/email.py +++ b/onadata/libs/utils/email.py @@ -19,7 +19,7 @@ def get_verification_email_data(email, username, verification_key, request): 'subject': 'registration/verification_email_subject.txt', 'message_txt': 'registration/verification_email.txt' } - for key, template_path in key_template_path_dict.iteritems(): + for key, template_path in key_template_path_dict.items(): email_data.update({ key: render_to_string( template_path,