No need to deepcopy since six.iterkeys() creates a copy

This commit is contained in:
Nitin Madhok 2015-12-03 01:06:51 -05:00
parent 2973025058
commit f109698196

View file

@ -285,9 +285,8 @@ class SyncClientMixin(object):
# Inject some useful globals to *all* the function's global
# namespace only once per module-- not per func
completed_funcs = []
_functions = copy.deepcopy(self.functions)
for mod_name in six.iterkeys(_functions):
for mod_name in six.iterkeys(self.functions):
if '.' not in mod_name:
continue
mod, _ = mod_name.split('.', 1)