Skip to content
Myr

xrange -> range_type for consistency

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 84d5de2 · Browse files · 1 file+2 added−2 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−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:jinja2/defaults.py+2 added-2 removed
6 unmodified lines
78 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11from six.moves import xrange11from jinja2._compat import range_type12from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner131415# defaults for the parser / lexer
12 unmodified lines
28# default filters, tests and namespace29from jinja2.filters import FILTERS as DEFAULT_FILTERS30from jinja2.tests import TESTS as DEFAULT_TESTS31DEFAULT_NAMESPACE = {32 'range': xrange,32 'range': range_type,33 'dict': lambda **kw: kw,34 'lipsum': generate_lorem_ipsum,35 'cycler': Cycler,36 'joiner': Joiner
5 unmodified lines