projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0430679
)
Removed unnecessary runtime check. Our 2to3 fixer fixes that
author
Armin Ronacher
<armin.ronacher@active-4.com>
Tue, 16 Feb 2010 23:25:14 +0000
(
00:25
+0100)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Tue, 16 Feb 2010 23:25:14 +0000
(
00:25
+0100)
automatically now.
--HG--
branch : trunk
jinja2/defaults.py
patch
|
blob
|
history
diff --git
a/jinja2/defaults.py
b/jinja2/defaults.py
index 96d20b2fc93261d619865f5884b8feaaca0f0237..d2d45443adde9d94b1319bc4ffa54a5abbe99baf 100644
(file)
--- 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,