From e64c61160edced875edcdc894c72665641a8f157 Mon Sep 17 00:00:00 2001 From: "Dave St.Germain" Date: Mon, 19 Aug 2019 14:54:03 -0400 Subject: [PATCH] Iterating dictionaries --- common/lib/xmodule/xmodule/modulestore/django.py | 2 +- lms/templates/shoppingcart/cybersource_form.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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