Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: third_party/jinja2/nodes.py

Issue 2316103002: binding: Updates Jinja2 from 2.7.1 to 2.8. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/jinja2/meta.py ('k') | third_party/jinja2/parser.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = '-'
« no previous file with comments | « third_party/jinja2/meta.py ('k') | third_party/jinja2/parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698