Skip to content
Myr

use slots for lexer lstrip marker

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 0a4dad6 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:jinja2/lexer.py+2 added
424 unmodified lines
425 """A special tuple for marking a point in the state that can have426 lstrip applied.427 """428429 __slots__ = ()430431 # Even though it looks like a no-op, creating instances fails432 # without this.433 def __new__(cls, *members, **kwargs):434 return super(OptionalLStrip, cls).__new__(cls, members)
326 unmodified lines