equal
deleted
inserted
replaced
239 |
239 |
240 |
240 |
241 class _callableopt(customopt): |
241 class _callableopt(customopt): |
242 def __init__(self, callablefn): |
242 def __init__(self, callablefn): |
243 self.callablefn = callablefn |
243 self.callablefn = callablefn |
244 super(_callableopt, self).__init__(None) |
244 super().__init__(None) |
245 |
245 |
246 def newstate(self, oldstate, newparam, abort): |
246 def newstate(self, oldstate, newparam, abort): |
247 return self.callablefn(newparam) |
247 return self.callablefn(newparam) |
248 |
248 |
249 |
249 |