1
0
mirror of https://github.com/django/django.git synced 2025-03-09 17:02:43 +00:00

[1.8.x] Removed unnecessary __init__ definition from DebugLexer.

Backport of ad9ecc2c209df3a48fc607f886d57f77ef972546 from master
This commit is contained in:
Preston Timmons 2015-02-16 09:36:35 -06:00 committed by Tim Graham
parent ad2c6a756b
commit 2b79a35a83

View File

@ -9,9 +9,6 @@ from django.utils.timezone import template_localtime
class DebugLexer(Lexer):
def __init__(self, template_string, origin):
super(DebugLexer, self).__init__(template_string, origin)
def tokenize(self):
"Return a list of tokens from a given template_string"
result, upto = [], 0