Iterating dictionaries

This commit is contained in:
Dave St.Germain
2019-08-19 14:54:03 -04:00
parent d564af8301
commit e64c61160e
2 changed files with 2 additions and 2 deletions

View File

@@ -425,7 +425,7 @@ def _get_modulestore_branch_setting():
# compare hostname against the regex expressions set of mappings which will tell us which branch to use
if mappings:
for key in mappings.iterkeys():
for key in mappings:
if re.match(key, hostname):
return mappings[key]
if branch is None:

View File

@@ -1,6 +1,6 @@
<%! from django.utils.translation import ugettext as _ %>
<form action="${action}" method="post">
% for pk, pv in params.iteritems():
% for pk, pv in params.items():
<input type="hidden" name="${pk}" value="${pv}" />
% endfor