def get_default_gid(uid):
    if isinstance(uid, int):
        return pwd.getpwuid(uid).pw_gid
    return pwd.getpwnam(uid).pw_gid
Return the default group of a specific user.
dataset/ETHPy150Open circus-tent/circus/circus/util.py/get_default_gid