@memoize
def group2gid(group, default=None):
    try:
        return group and grp.getgrnam(group).gr_gid
    except __HOLE__:
        return default
dataset/ETHPy150Open jborg/attic/attic/helpers.py/group2gid