Skip to content
Myr

[svn] fixed jinja trunk

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 487a418 · Browse files · 2 files+3 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

2 files+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:jinja/translators/python.py+2 added-1 removed
127 unmodified lines
128 # -- public methods129130 def process(environment, node):131 translator = PythonTranslator(environment, node)132 filename = node.filename or '<template>'133 return Template(environment,133 compile(translator.translate(), node.filename, 'exec'))134 compile(translator.translate(), filename, 'exec'))135 process = staticmethod(process)136137 # -- private methods138
537 unmodified lines
modified:jinja/datastructure.py+1 added-1 removed
98 unmodified lines
99 """100101 def __init__(self, _environment_, *args, **kwargs):102 self.environment = _environment_103 self._stack = [self.environment.globals, dict(*args, **kwargs), {}, {}]103 self._stack = [self.environment.globals, dict(*args, **kwargs), {}]104 self.globals, self.initial, self.current = self._stack105106 # cache object used for filters and tests107 self.cache = {}
185 unmodified lines