def condition_input(args, kwargs):
 ret = []
 for arg in args:
  if ((six.PY3 and isinstance(arg, six.integer_types) and salt.utils.jid.is_jid(str(arg))) or (six.PY2 and isinstance(arg, long))):
   ret.append(str(arg))
  else:
   ret.append(arg)
 if (isinstance(kwargs, dict) and kwargs):
  kw_ = {'__kwarg__': True}
  for (key, val) in six.iteritems(kwargs):
   kw_[key] = val
  return (ret + [kw_])
 return ret

def condition_input ( args , kwargs ) : ret = [ ] for arg in args : if ( ( six . PY3 and isinstance ( arg , six . integer_types ) and salt . utils . jid . is_jid ( str ( arg ) ) ) or ( six . PY2 and isinstance ( arg , long ) ) ) : ret . append ( str ( arg ) ) else : ret . append ( arg ) if ( isinstance ( kwargs , dict ) and kwargs ) : kw_ = { '__kwarg__' : True } for ( key , val ) in six . iteritems ( kwargs ) : kw_ [ key ] = val return ( ret + [ kw_ ] ) return ret
return a single arg structure for the publisher to safely use .