From: Armin Ronacher Date: Sat, 29 May 2010 19:16:35 +0000 (+0200) Subject: Next try for a Python 3 fix X-Git-Tag: 2.5~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1120b7b0aac2fdff302829aa8b939d19d37932a1;p=thirdparty%2Fjinja.git Next try for a Python 3 fix --HG-- branch : trunk --- diff --git a/jinja2/runtime.py b/jinja2/runtime.py index 98f4aec3..43ffda80 100644 --- a/jinja2/runtime.py +++ b/jinja2/runtime.py @@ -527,10 +527,7 @@ class StrictUndefined(Undefined): """ __slots__ = () __iter__ = __unicode__ = __str__ = __len__ = __nonzero__ = __eq__ = \ - __ne__ = Undefined._fail_with_undefined_error - if sys.version_info >= (3, 0): - __bool__ = __nonzero__ - del __nonzero__ + __ne__ = __bool__ = Undefined._fail_with_undefined_error # remove remaining slots attributes, after the metaclass did the magic they