def trycmd(*args, **kwargs):
    discard_warnings = kwargs.pop('discard_warnings', False)

    try:
        out, err = execute(*args, **kwargs)
        failed = False
    except ProcessExecutionError as exn:
        out, err = '', str(exn)
        failed = True

    if not failed and discard_warnings and err:
        # Handle commands that output to stderr but otherwise succeed
        err = ''

    return out, err
QPromptWidget(parent: QWidget) -> QPromptWidget
dataset/ETHPy150Open openstack/rack/rack/openstack/common/processutils.py/trycmd--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/common_widgets.py/QPromptWidget.__init__