def change_suffix(glyph, old_suffix, new_suffix=None):
    base_name = glyph.name.split(".")[0]
    if new_suffix is not None:
        new_name = "%s.%s" % (base_name, new_suffix)
    else:
        new_name = base_name
    return new_name

#---------------
# round to grid
#---------------
Return a new modified name for ``glyph``, using ``new_suffix`` in place of ``old_suffix``.
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/modules/glyphutils.py/change_suffix