def deluser(name, username, root=None):
    on_redhat_5 = __grains__.get('os_family') == 'RedHat' and __grains__.get('osmajorrelease') == '5'

    grp_info = __salt__['group.info'](name)
    try:
        if username in grp_info['members']:
            if __grains__['kernel'] == 'Linux':
                if on_redhat_5:
                    cmd = ('gpasswd', '-d', username, name)
                else:
                    cmd = ('gpasswd', '--del', username, name)
                if root is not None:
                    cmd.extend(('-R', root))
                retcode = __salt__['cmd.retcode'](cmd, python_shell=False)
            elif __grains__['kernel'] == 'OpenBSD':
                out = __salt__['cmd.run_stdout']('id -Gn {0}'.format(username),
                                                 python_shell=False)
                cmd = 'usermod -S '
                cmd += ','.join([g for g in out.split() if g != str(name)])
                cmd += ' {0}'.format(username)
                retcode = __salt__['cmd.retcode'](cmd, python_shell=False)
            else:
                log.error('group.deluser is not yet supported on this platform')
                return False
            return not retcode
        else:
            return True
    except Exception:
        return True
QListEditDialog(pType: str, strValues: list, parent: QWidget)
dataset/ETHPy150Open saltstack/salt/salt/modules/groupadd.py/deluser--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/mashups/alias_inspector.py/QListEditDialog.__init__