want to change this encoding they can override the filter.
- Accessing `last` on the loop context no longer causes the iterator
to be consumed into a list.
+- Allow `contextfunction` and other decorators to be applied to `__call__`.
Version 2.6
-----------
"""
if __debug__:
__traceback_hide__ = True
-
+
# Allow callable classes to take a context
if hasattr(__obj, '__call__'):
fn = __obj.__call__
- for fn_type in ('contextfunction',
- 'evalcontextfunction',
+ for fn_type in ('contextfunction',
+ 'evalcontextfunction',
'environmentfunction'):
if hasattr(fn, fn_type):
__obj = fn
- break;
-
+ break
+
if isinstance(__obj, _context_function_types):
if getattr(__obj, 'contextfunction', 0):
args = (__self,) + args