From 1442519b0befb1a6e4ab5e136ccda8011f5651cb Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 17 Feb 2010 00:25:14 +0100 Subject: [PATCH] Removed unnecessary runtime check. Our 2to3 fixer fixes that automatically now. --HG-- branch : trunk --- jinja2/defaults.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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, -- 2.26.2