def call(*args, **kwargs):
    if logging.getLogger().getEffectiveLevel() == logging.DEBUG:
        stderr = PIPE
    else:
        stderr = DEVNULL

    kwargs.setdefault('stderr', stderr)
    kwargs.setdefault('stdout', PIPE)
    kwargs.setdefault('stdin', PIPE)
    kwargs.setdefault('shell', False)
    kwargs_input = kwargs.pop('input', None)

    with Proc(*args, **kwargs) as proc:
        output, error = proc.communicate(input=kwargs_input)
        try:
            output = output.decode('utf-8')
            error = error.decode('utf-8')
        except __HOLE__:
            pass
        return output, error
dataset/ETHPy150Open marcwebbie/passpie/passpie/process.py/call