def _create_pbuilders(env):
    home = os.path.expanduser('~')
    pbuilderrc = os.path.join(home, '.pbuilderrc')
    if not os.path.isfile(pbuilderrc):
        raise SaltInvocationError(
            'pbuilderrc environment is incorrectly setup'
        )

    env_overrides = _get_build_env(env)
    if env_overrides and not env_overrides.isspace():
        with salt.utils.fopen(pbuilderrc, 'a') as fow:
            fow.write('{0}'.format(env_overrides))
Remove a user from a permissions group
dataset/ETHPy150Open saltstack/salt/salt/modules/debbuild.py/_create_pbuilders--crossover with--dataset/ETHPy150Open edgewall/trac/trac/admin/tests/functional.py/TestRemoveUserFromGroup.runTest