1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Removed unnecessary line in DebugLexer.tokenize().

This commit is contained in:
sanchjat 2019-05-07 17:04:05 +05:30 committed by Mariusz Felisiak
parent 705ef6cfeb
commit 21aa2a5e78
2 changed files with 1 additions and 1 deletions

View File

@ -760,6 +760,7 @@ answer newbie questions, and generally made Django that much better:
Ryan Niemeyer <https://profiles.google.com/ryan.niemeyer/about> Ryan Niemeyer <https://profiles.google.com/ryan.niemeyer/about>
Ryan Rubin <ryanmrubin@gmail.com> Ryan Rubin <ryanmrubin@gmail.com>
Ryno Mathee <rmathee@gmail.com> Ryno Mathee <rmathee@gmail.com>
Sachin Jat <sanch.jat@gmail.com>
Sam Newman <http://www.magpiebrain.com/> Sam Newman <http://www.magpiebrain.com/>
Sander Dijkhuis <sander.dijkhuis@gmail.com> Sander Dijkhuis <sander.dijkhuis@gmail.com>
Sanket Saurav <sanketsaurav@gmail.com> Sanket Saurav <sanketsaurav@gmail.com>

View File

@ -395,7 +395,6 @@ class DebugLexer(Lexer):
token_string = self.template_string[upto:start] token_string = self.template_string[upto:start]
result.append(self.create_token(token_string, (upto, start), lineno, in_tag=False)) result.append(self.create_token(token_string, (upto, start), lineno, in_tag=False))
lineno += token_string.count('\n') lineno += token_string.count('\n')
upto = start
token_string = self.template_string[start:end] token_string = self.template_string[start:end]
result.append(self.create_token(token_string, (start, end), lineno, in_tag=True)) result.append(self.create_token(token_string, (start, end), lineno, in_tag=True))
lineno += token_string.count('\n') lineno += token_string.count('\n')