]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Changelog and __rsub__ handling
authorArmin Ronacher <armin.ronacher@active-4.com>
Tue, 3 Jan 2017 18:33:25 +0000 (19:33 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Tue, 3 Jan 2017 18:33:25 +0000 (19:33 +0100)
CHANGES
jinja2/runtime.py

diff --git a/CHANGES b/CHANGES
index 776af694cf7a2dd711cbd66b09aaf79e0032cb0e..2356fc95dcb6b13c8d059747d02d1e37ae632bc2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -16,6 +16,8 @@ Version 2.9
 - Support attribute fallback for old-style classes in 2.x.
 - Support toplevel set statements in extend situations.
 - Restored behavior of Cycler for Python 3 users.
+- Subtraction now follows the same behavior as other operators on undefined
+  values.
 
 Version 2.8.2
 -------------
index 876d69f3db9132572dee9d619fa545b080cfab2a..28fde6db53cadae41f9035e8e63053ed2585ead2 100644 (file)
@@ -508,7 +508,7 @@ class Undefined(object):
         __mod__ = __rmod__ = __pos__ = __neg__ = __call__ = \
         __getitem__ = __lt__ = __le__ = __gt__ = __ge__ = __int__ = \
         __float__ = __complex__ = __pow__ = __rpow__ = __sub__ = \
-        _fail_with_undefined_error
+        __rsub__ = _fail_with_undefined_error
 
     def __eq__(self, other):
         return type(self) is type(other)