Skip to content
Myr

Fixed a Python 3 regression.

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 6e9dfbf · Browse files · 1 file+16 added−10 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+16 added−10 removed

  • other:+16 added−10 removed

1 file+16 added−10 removed

modified:jinja2/runtime.py+16 added-10 removed
519 unmodified lines
520 yield None521522 def __nonzero__(self):523 return False524 __bool__ = __nonzero__525526 def __repr__(self):527 return 'Undefined'528
54 unmodified lines
583 rv = base.__str__(self)584 _log_message(self)585 return rv586586 if PY2:587 def __unicode__(self):588 rv = base.__unicode__(self)589 _log_message(self)590 return rv591587 def __iter__(self):588 rv = base.__iter__(self)589 _log_message(self)590 return rv591592 if PY2:597 def __nonzero__(self):598 rv = base.__nonzero__(self)599 _log_message(self)600 return rv593 def __nonzero__(self):594 rv = base.__nonzero__(self)595 _log_message(self)596 return rv597598 def __unicode__(self):599 rv = base.__unicode__(self)600 _log_message(self)601 return rv602 else:603 def __bool__(self):604 rv = base.__bool__(self)605 _log_message(self)606 return rv607608 return LoggingUndefined609610611@implements_to_string
55 unmodified lines