Skip to content

Commit

Permalink
use items()
Browse files Browse the repository at this point in the history
  • Loading branch information
remik committed Jan 14, 2015
1 parent caf3db0 commit 07a3f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basic_email/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def send_email(template, to, subject, variables={}, fail_silently=False,
replace_variables['protocol'] = protocol
domain = variables['site'].domain
replace_variables['domain'] = domain
for key, value in replace_variables.iteritems():
for key, value in replace_variables.items():
if not value:
value = ''
html = html.replace('{%s}' % key.upper(), value)
Expand Down

0 comments on commit 07a3f56

Please sign in to comment.