Commit 5189316b by Chris Jerdonek

Removed two unused arguments from _handle_tag_type().

parent c35b3303
...@@ -130,7 +130,7 @@ class Parser(object): ...@@ -130,7 +130,7 @@ class Parser(object):
return ParsedTemplate(parse_tree), template[start_index:match_index], end_index return ParsedTemplate(parse_tree), template[start_index:match_index], end_index
index = self._handle_tag_type(template, parse_tree, tag_type, tag_key, leading_whitespace, start_index, match_index, end_index) index = self._handle_tag_type(template, parse_tree, tag_type, tag_key, leading_whitespace, end_index)
# Save the rest of the template. # Save the rest of the template.
parse_tree.append(template[index:]) parse_tree.append(template[index:])
...@@ -142,7 +142,7 @@ class Parser(object): ...@@ -142,7 +142,7 @@ class Parser(object):
return parsed_template, template, index_end return parsed_template, template, index_end
def _handle_tag_type(self, template, parse_tree, tag_type, tag_key, leading_whitespace, start_index, match_index, end_index): def _handle_tag_type(self, template, parse_tree, tag_type, tag_key, leading_whitespace, end_index):
if tag_type == '!': if tag_type == '!':
return end_index return end_index
......
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