Next try for a Python 3 fix
authorArmin Ronacher <armin.ronacher@active-4.com>
Sat, 29 May 2010 19:16:35 +0000 (21:16 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sat, 29 May 2010 19:16:35 +0000 (21:16 +0200)
--HG--
branch : trunk

jinja2/runtime.py

index 98f4aec3fd800a72954d0c3900e0c4c0b74432ed..43ffda80ae3360c6f7df8575ba20999e0cf03343 100644 (file)
@@ -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