def exec_command_all(*cmdargs, **kwargs):
 proc = subprocess.Popen(cmdargs, bufsize=(-1), stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
 (out, err) = proc.communicate()
 if is_py3:
  encoding = kwargs.get('encoding')
  if encoding:
   out = out.decode(encoding)
   err = err.decode(encoding)
  else:
   out = os.fsdecode(out)
   err = os.fsdecode(err)
 return (proc.returncode, out, err)

def exec_command_all ( * cmdargs , ** kwargs ) : proc = subprocess . Popen ( cmdargs , bufsize = ( - 1 ) , stdout = subprocess . PIPE , stderr = subprocess . PIPE , ** kwargs ) ( out , err ) = proc . communicate ( ) if is_py3 : encoding = kwargs . get ( 'encoding' ) if encoding : out = out . decode ( encoding ) err = err . decode ( encoding ) else : out = os . fsdecode ( out ) err = os . fsdecode ( err ) return ( proc . returncode , out , err )
run the command specified by the passed positional arguments .