def arg_lookup(fun, aspec=None):
 ret = {'kwargs': {}}
 if (aspec is None):
  aspec = salt.utils.args.get_function_argspec(fun)
 if aspec.defaults:
  ret['kwargs'] = dict(zip(aspec.args[::(-1)], aspec.defaults[::(-1)]))
 ret['args'] = [arg for arg in aspec.args if (arg not in ret['kwargs'])]
 return ret

def arg_lookup ( fun , aspec = None ) : ret = { 'kwargs' : { } } if ( aspec is None ) : aspec = salt . utils . args . get_function_argspec ( fun ) if aspec . defaults : ret [ 'kwargs' ] = dict ( zip ( aspec . args [ : : ( - 1 ) ] , aspec . defaults [ : : ( - 1 ) ] ) ) ret [ 'args' ] = [ arg for arg in aspec . args if ( arg not in ret [ 'kwargs' ] ) ] return ret
return a dict containing the arguments and default arguments to the function .