summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2021-08-08 23:49:09 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-08-09 13:42:52 +0200
commit6fedd868e1d50421204ea0c05cc8d2200dcb3cb0 (patch)
tree19f03adabd4da114a9e76ed4facda1e7988db07d
parent6242c22a2f062f1b55f8a612b75063966937bc5d (diff)
Refs #33002 -- Renamed variable from bit to token_string in Lexer.tokenize().
-rw-r--r--django/template/base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/django/template/base.py b/django/template/base.py
index a3182ea704..2f30d5fe7a 100644
--- a/django/template/base.py
+++ b/django/template/base.py
@@ -354,10 +354,10 @@ class Lexer:
in_tag = False
lineno = 1
result = []
- for bit in tag_re.split(self.template_string):
- if bit:
- result.append(self.create_token(bit, None, lineno, in_tag))
- lineno += bit.count('\n')
+ for token_string in tag_re.split(self.template_string):
+ if token_string:
+ result.append(self.create_token(token_string, None, lineno, in_tag))
+ lineno += token_string.count('\n')
in_tag = not in_tag
return result