def get_output_error_code(cmd):
 (out_err, p) = process_handler(cmd, (lambda p: (p.communicate(), p)))
 if (out_err is None):
  return ('', '', p.returncode)
 (out, err) = out_err
 return (py3compat.bytes_to_str(out), py3compat.bytes_to_str(err), p.returncode)

def get_output_error_code ( cmd ) : ( out_err , p ) = process_handler ( cmd , ( lambda p : ( p . communicate ( ) , p ) ) ) if ( out_err is None ) : return ( '' , '' , p . returncode ) ( out , err ) = out_err return ( py3compat . bytes_to_str ( out ) , py3compat . bytes_to_str ( err ) , p . returncode )
return of executing cmd in a shell .