1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Refs #35738 -- Made lineno attribute optional.

This commit is contained in:
sanjeevholla26 2024-09-07 14:56:33 +05:30
parent de9c2fa6df
commit b954a07921

View File

@ -672,7 +672,7 @@ class FilterExpression:
__slots__ = ("token", "filters", "var", "is_var", "lineno") __slots__ = ("token", "filters", "var", "is_var", "lineno")
def __init__(self, token, parser, lineno): def __init__(self, token, parser, lineno=None):
self.token = token self.token = token
self.lineno = lineno self.lineno = lineno
matches = filter_re.finditer(token) matches = filter_re.finditer(token)