(name)
return None
Returns a gid, given a group name.
Returns a gid, given a group name.
Returns a gid given a group name .
def _get_gid(name):
    """Returns a gid, given a group name."""
    if name is None:
        return None

    try:
        from grp import getgrnam
    except ImportError:
        return None

    try:
        result = getgrnam(name)
    except KeyError:
        result = None
    if result is not None:
        return result[2]
    return None
def _get_gid ( name ) : if name is None : return None try : from grp import getgrnam except ImportError : return None try : result = getgrnam ( name ) except KeyError : result = None if result is not None : return result [ 2 ] return None