mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
More keys() removal
This commit is contained in:
parent
fbc14beb97
commit
6f3f3226b9
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user