Commit b2137d4f by Chris Jerdonek

Removed unused view parameter from Template._render_sections().

parent 050ab67d
...@@ -116,7 +116,7 @@ class Template(object): ...@@ -116,7 +116,7 @@ class Template(object):
tag = r"%(otag)s(#|=|&|!|>|\{)?(.+?)\1?%(ctag)s+" tag = r"%(otag)s(#|=|&|!|>|\{)?(.+?)\1?%(ctag)s+"
self.tag_re = re.compile(tag % tags) self.tag_re = re.compile(tag % tags)
def _render_sections(self, template, view): def _render_sections(self, template):
while True: while True:
match = self.section_re.search(template) match = self.section_re.search(template)
if match is None: if match is None:
...@@ -240,7 +240,7 @@ class Template(object): ...@@ -240,7 +240,7 @@ class Template(object):
Return the template rendered using the current view context. Return the template rendered using the current view context.
""" """
template = self._render_sections(self.template, self.view) template = self._render_sections(self.template)
result = self._render_tags(template) result = self._render_tags(template)
if encoding is not None: if encoding is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment