From: Armin Ronacher Date: Tue, 16 Feb 2010 23:25:14 +0000 (+0100) Subject: Removed unnecessary runtime check. Our 2to3 fixer fixes that X-Git-Tag: 2.4~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1442519b0befb1a6e4ab5e136ccda8011f5651cb;p=jinja2.git Removed unnecessary runtime check. Our 2to3 fixer fixes that automatically now. --HG-- branch : trunk --- diff --git a/jinja2/defaults.py b/jinja2/defaults.py index 96d20b2..d2d4544 100644 --- a/jinja2/defaults.py +++ b/jinja2/defaults.py @@ -24,17 +24,11 @@ TRIM_BLOCKS = False NEWLINE_SEQUENCE = '\n' -try: - range_func = xrange -except NameError: - range_func = range - - # default filters, tests and namespace from jinja2.filters import FILTERS as DEFAULT_FILTERS from jinja2.tests import TESTS as DEFAULT_TESTS DEFAULT_NAMESPACE = { - 'range': range_func, + 'range': xrange, 'dict': lambda **kw: kw, 'lipsum': generate_lorem_ipsum, 'cycler': Cycler,