From 1120b7b0aac2fdff302829aa8b939d19d37932a1 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 29 May 2010 21:16:35 +0200 Subject: [PATCH] Next try for a Python 3 fix --HG-- branch : trunk --- jinja2/runtime.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.47.2