Skip to content
Myr

Next try for a Python 3 fix

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent d1ef7e0 · Browse files · 1 file+1 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:jinja2/runtime.py+1 added-4 removed
525 unmodified lines
526 UndefinedError: 'foo' is undefined527 """528 __slots__ = ()529 __iter__ = __unicode__ = __str__ = __len__ = __nonzero__ = __eq__ = \530 __ne__ = Undefined._fail_with_undefined_error531 if sys.version_info >= (3, 0):532 __bool__ = __nonzero__533 del __nonzero__530 __ne__ = __bool__ = Undefined._fail_with_undefined_error531532533# remove remaining slots attributes, after the metaclass did the magic they534# are unneeded and irritating as they contain wrong data for the subclasses.
1 unmodified line