def _parse_group_line(line):
    """
    Parses a line from /etc/group and returns the information as a
    dictionary.
    """
    result = dict(zip(('groupname', 'password', 'gid', 'members'), line.
        strip().split(':')))
    result['gid'] = result['gid']
    del result['password']
    return result
