From: Armin Ronacher Date: Thu, 12 Jan 2017 22:50:08 +0000 (+0100) Subject: Added changelog entry for #658 X-Git-Tag: 2.10~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8e7d98c63edcf663bf8ef44b162dbb16f288b3e;p=thirdparty%2Fjinja.git Added changelog entry for #658 --- diff --git a/CHANGES b/CHANGES index 6851103e..08d7df50 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,8 @@ Version 2.10 - Added a new extension node called `OverlayScope` which can be used to create an unoptimized scope that will look up all variables from a derived context. +- Added an `in` test that works like the in operator. This can be used + in combination with `reject` and `select`. Version 2.9.5 ------------- diff --git a/jinja2/tests.py b/jinja2/tests.py index e4129658..40b2b35a 100644 --- a/jinja2/tests.py +++ b/jinja2/tests.py @@ -163,7 +163,10 @@ def test_lessthan(value, other): def test_in(value, seq): - """Check if value is in seq.""" + """Check if value is in seq. + + .. versionadded:: 2.10 + """ return value in seq