Skip to content
Myr

return on first false when folding Compare node

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

authored by areebbeigh · committed by David Lord · parent c206cc9 · Browse files · 1 file+2 added−0 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:jinja2/nodes.py+2 added
770 unmodified lines
771 try:772 for op in self.ops:773 new_value = op.expr.as_const(eval_ctx)774 result = _cmpop_to_func[op.op](value, new_value)775 if not result:776 return False777 value = new_value778 except Exception:779 raise Impossible()780 return result
222 unmodified lines