diff --git a/common/lib/xmodule/xmodule/modulestore/django.py b/common/lib/xmodule/xmodule/modulestore/django.py index 4c1bd60185..6988e649b4 100644 --- a/common/lib/xmodule/xmodule/modulestore/django.py +++ b/common/lib/xmodule/xmodule/modulestore/django.py @@ -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: diff --git a/lms/templates/shoppingcart/cybersource_form.html b/lms/templates/shoppingcart/cybersource_form.html index c42de3354f..6c34a37a0f 100644 --- a/lms/templates/shoppingcart/cybersource_form.html +++ b/lms/templates/shoppingcart/cybersource_form.html @@ -1,6 +1,6 @@ <%! from django.utils.translation import ugettext as _ %>
- % for pk, pv in params.iteritems(): + % for pk, pv in params.items(): % endfor