Improved tempalte formatting

This commit is contained in:
Hilton Bristow
2013-03-18 14:48:10 +10:00
committed by hbristow
parent 66c40bee6f
commit eda32520e2
7 changed files with 59 additions and 56 deletions

View File

@@ -26,7 +26,6 @@ NEWLINE_SEQUENCE = '\n'
# default filters, tests and namespace
from jinja2.filters import FILTERS as DEFAULT_FILTERS
from jinja2.tests import TESTS as DEFAULT_TESTS
DEFAULT_NAMESPACE = {
'range': xrange,
'dict': lambda **kw: kw,

View File

@@ -265,7 +265,6 @@ class Environment(object):
# defaults
self.filters = DEFAULT_FILTERS.copy()
self.tests = DEFAULT_TESTS.copy()
self.globals = DEFAULT_NAMESPACE.copy()
# set the loader provided