Refs #33002 -- Renamed variable from bit to token_string in Lexer.tokenize().

This commit is contained in:
Chris Jerdonek 2021-08-08 23:49:09 -04:00 committed by Mariusz Felisiak
parent 6242c22a2f
commit 6fedd868e1
1 changed files with 4 additions and 4 deletions

View File

@ -354,10 +354,10 @@ class Lexer:
in_tag = False in_tag = False
lineno = 1 lineno = 1
result = [] result = []
for bit in tag_re.split(self.template_string): for token_string in tag_re.split(self.template_string):
if bit: if token_string:
result.append(self.create_token(bit, None, lineno, in_tag)) result.append(self.create_token(token_string, None, lineno, in_tag))
lineno += bit.count('\n') lineno += token_string.count('\n')
in_tag = not in_tag in_tag = not in_tag
return result return result