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: