py__bool__ should be called on CompiledObject in CompiledValue

This commit is contained in:
Dave Halter
2018-09-25 08:58:01 +02:00
parent f3b2d49880
commit 7d3eba1d8d

View File

@@ -21,7 +21,7 @@ class CompiledValue(ContextWrapper):
def __getattribute__(self, name): def __getattribute__(self, name):
if name in ('get_safe_value', 'execute_operation', 'access_handle', if name in ('get_safe_value', 'execute_operation', 'access_handle',
'negate'): 'negate', 'py__bool__'):
return getattr(self._compiled_obj, name) return getattr(self._compiled_obj, name)
return super(CompiledValue, self).__getattribute__(name) return super(CompiledValue, self).__getattribute__(name)