def METHOD_NAME(knots, pnts, order):
    order2 = order - 1
    if order > 2:
        b = pnts + order2
        for a in range(1, order2):
            if knots[b] != knots[b - a]:
                break
            if a == order2:
                knots[pnts + order - 2] += 1.0
    b = order
    c = pnts + order + order2
    for a in range(pnts + order2, c):
        knots[a] = knots[a - 1] + (knots[b] - knots[b - 1])
        b -= 1