| Index: third_party/jinja2/nodes.py
|
| diff --git a/third_party/jinja2/nodes.py b/third_party/jinja2/nodes.py
|
| index c5697e6b5ec3737a0e43656c883340656c4544d3..d32046ce5c3c5c068a2b25d5e8ad14423c7cf389 100644
|
| --- a/third_party/jinja2/nodes.py
|
| +++ b/third_party/jinja2/nodes.py
|
| @@ -12,16 +12,16 @@
|
| :copyright: (c) 2010 by the Jinja Team.
|
| :license: BSD, see LICENSE for more details.
|
| """
|
| +import types
|
| import operator
|
|
|
| from collections import deque
|
| from jinja2.utils import Markup
|
| -from jinja2._compat import next, izip, with_metaclass, text_type, \
|
| - method_type, function_type
|
| +from jinja2._compat import izip, with_metaclass, text_type
|
|
|
|
|
| #: the types we support for context functions
|
| -_context_function_types = (function_type, method_type)
|
| +_context_function_types = (types.FunctionType, types.MethodType)
|
|
|
|
|
| _binop_to_func = {
|
| @@ -347,6 +347,11 @@ class Assign(Stmt):
|
| fields = ('target', 'node')
|
|
|
|
|
| +class AssignBlock(Stmt):
|
| + """Assigns a block to a target."""
|
| + fields = ('target', 'body')
|
| +
|
| +
|
| class Expr(Node):
|
| """Baseclass for all expressions."""
|
| abstract = True
|
| @@ -746,7 +751,7 @@ class Add(BinExpr):
|
|
|
|
|
| class Sub(BinExpr):
|
| - """Substract the right from the left node."""
|
| + """Subtract the right from the left node."""
|
| operator = '-'
|
|
|
|
|
|
|