Skip to content
Myr

iteration over old style class that have no length should work now

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 46d9beb · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja/datastructure.py+1 added-1 removed
343 unmodified lines
344 length = 0345 else:346 try:347 length = len(seq)348 except TypeError:348 except (AttributeError, TypeError):349 seq = list(seq)350 length = len(seq)351 self._stack.append({352 'index': -1,
343 unmodified lines