def fix_attachlist(font):
    modified = False
    try:
        attach_points = font['GDEF'].table.AttachList.AttachPoint
    except (KeyError, AttributeError):
        attach_points = []

    for attach_point in attach_points:
        points = sorted(set(attach_point.PointIndex))
        if points != attach_point.PointIndex:
            attach_point.PointIndex = points
            attach_point.PointCount = len(points)
            modified = True

    if modified:
        print 'Fixed GDEF.AttachList'

    return modified
date_based.object_detail can view a page from today
dataset/ETHPy150Open googlei18n/nototools/nototools/autofix_for_release.py/fix_attachlist--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/views/tests/generic/date_based.py/ObjectDetailTest.test_object_detail_finds_today