Skip to content

Commit

Permalink
fixup! Add option to preserve comments when parsing templates
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Oct 10, 2024
1 parent 7b71819 commit 7622638
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/jinja2/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,7 @@ def parse(
self.handle_exception(source=source)

def _parse(
self,
source: str,
name: t.Optional[str],
filename: t.Optional[str],
self, source: str, name: t.Optional[str], filename: t.Optional[str]
) -> nodes.Template:
"""Internal parsing function used by `parse` and `compile`."""
return Parser(self, source, name, filename).parse()
Expand Down

0 comments on commit 7622638

Please sign in to comment.