def p4_system(cmd):
 real_cmd = p4_build_cmd(cmd)
 expand = isinstance(real_cmd, six.string_types)
 retcode = subprocess.call(real_cmd, shell=expand)
 if retcode:
  raise CalledProcessError(retcode, real_cmd)

def p4_system ( cmd ) : real_cmd = p4_build_cmd ( cmd ) expand = isinstance ( real_cmd , six . string_types ) retcode = subprocess . call ( real_cmd , shell = expand ) if retcode : raise CalledProcessError ( retcode , real_cmd )
specifically invoke p4 as the system command .