More keys() removal

This commit is contained in:
Thomas Jackson 2014-10-31 13:02:35 -07:00
parent fbc14beb97
commit 6f3f3226b9

View File

@ -702,7 +702,7 @@ class Loader(object):
mod.__salt__ = functions
try:
context = sys.modules[
functions[functions.keys()[0]].__module__
functions[functions.iterkeys().next()].__module__
].__context__
except (AttributeError, IndexError):
context = {}