def _setGroupNames(classes, classRename):
    """
    Set the final names into the groups.
    """
    groups = {}
    for groupName, glyphList in classes.items():
        groupName = classRename.get(groupName, groupName)
        # if the glyph list has only one member,
        # the glyph name will be used in the pairs.
        # no group is needed.
        if len(glyphList) == 1:
            continue
        groups[groupName] = glyphList
    return groups
def _setGroupNames ( classes , classRename ) : groups = { } for groupName , glyphList in classes . items ( ) : groupName = classRename . get ( groupName , groupName ) if len ( glyphList ) == 1 : continue groups [ groupName ] = glyphList return groups
Set the final names into the groups.