

def __call__(self, record):
    ' Check if the field in the new record has changed.\n        '
    new = getattr(record, self.field)
    check = (self.previous != new)
    self.previous = new
    return check

dataset/ETHPy150Open enthought/pikos/pikos/filters/on_change.py OnChange.__call__/original