equal
deleted
inserted
replaced
348 if callable(gen): |
348 if callable(gen): |
349 return gen() |
349 return gen() |
350 return gen |
350 return gen |
351 |
351 |
352 def tobool(self, context, mapping): |
352 def tobool(self, context, mapping): |
353 return bool(self.tovalue(context, mapping)) |
353 w = makewrapped(context, mapping, self._value) |
|
354 return w.tobool(context, mapping) |
354 |
355 |
355 def tovalue(self, context, mapping): |
356 def tovalue(self, context, mapping): |
356 return _unthunk(context, mapping, self._value) |
357 return _unthunk(context, mapping, self._value) |
357 |
358 |
358 class _mappingsequence(wrapped): |
359 class _mappingsequence(wrapped): |