def call_subprocess_Popen(command, **params):
 if (('stdout' in params) or ('stderr' in params)):
  raise TypeError("don't use stderr or stdout with call_subprocess_Popen")
 with open(os.devnull, 'wb') as null:
  params.setdefault('stdin', null)
  params['stdout'] = null
  params['stderr'] = null
  p = subprocess_Popen(command, **params)
  returncode = p.wait()
 return returncode

def call_subprocess_Popen ( command , ** params ) : if ( ( 'stdout' in params ) or ( 'stderr' in params ) ) : raise TypeError ( "don't use stderr or stdout with call_subprocess_Popen" ) with open ( os . devnull , 'wb' ) as null : params . setdefault ( 'stdin' , null ) params [ 'stdout' ] = null params [ 'stderr' ] = null p = subprocess_Popen ( command , ** params ) returncode = p . wait ( ) return returncode
calls subprocess_popen and discards the output .