Skip to content
Myr

[svn] iteration over an undefined singleton is now handled in the singleton itself and not the loop context

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 6dba4d6 · Browse files · 1 file+4 added−1 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:jinja/datastructure.py+4 added-1 removed
322 unmodified lines
323 """324 Push a sequence to the loop stack. This is used by the325 recursive for loop.326 """327 if seq in (Undefined, None):327 # iteration over None is catched, but we don't catch iteration328 # over undefined because that behavior is handled in the329 # undefined singleton330 if seq is None:331 seq = ()332 length = 0333 else:334 try:
270 unmodified lines