jinja2.sandbox.SandboxedEnvironment.is_safe_callable

SandboxedEnvironment.is_safe_callable(obj)[source]

Check if an object is safely callable. Per default a function is considered safe unless the unsafe_callable attribute exists and is True. Override this method to alter the behavior, but this won’t affect the unsafe decorator from this module.