def _get_gid(name):
    """Returns a gid, given a group name."""
    if getgrnam is None or name is None:
        return None
    try:
        result = getgrnam(name)
    except __HOLE__:
        result = None
    if result is not None:
        return result[2]
    return None
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/distutils/archive_util.py/_get_gid