Skip to content

Commit

Permalink
Use .items() instead .iteritems()
Browse files Browse the repository at this point in the history
.items() can be used in dicts in both python 2 and 3

Signed-off-by: ivermac <[email protected]>
  • Loading branch information
ivermac committed Jul 25, 2018
1 parent 337685e commit abccef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onadata/libs/utils/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit abccef2

Please sign in to comment.