summaryrefslogtreecommitdiff
path: root/pystache
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-05-05 09:04:14 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-05-05 09:04:14 -0700
commitcf1c649f75313b5af1fca9a726d4760920b2f3ac (patch)
tree39a0086a7541bd83627c796912a96b1dcbeba559 /pystache
parentd7fac0b90fcbd46ea819071ebf26d6b0a7fd4786 (diff)
downloadpystache-cf1c649f75313b5af1fca9a726d4760920b2f3ac.tar.gz
No need to cache the tag_key.
Diffstat (limited to 'pystache')
-rw-r--r--pystache/parser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pystache/parser.py b/pystache/parser.py
index eb2f556..3a014ce 100644
--- a/pystache/parser.py
+++ b/pystache/parser.py
@@ -146,7 +146,7 @@ class Parser(object):
if tag_type in ('#', '^'):
# Cache current state.
- state = (tag_type, tag_key, end_index, section_key, parsed_template)
+ state = (tag_type, end_index, section_key, parsed_template)
states.append(state)
# Initialize new state
@@ -160,9 +160,9 @@ class Parser(object):
# Restore previous state with newly found section data.
parsed_section = parsed_template
- (tag_type, tag_key, end_index, section_key, parsed_template) = states.pop()
+ (tag_type, section_start_index, section_key, parsed_template) = states.pop()
node = self._make_section_node(template, tag_type, tag_key, parsed_section,
- end_index, match_index)
+ section_start_index, match_index)
else:
node = self._make_interpolation_node(tag_type, tag_key, leading_whitespace)