Skip to content

Commit

Permalink
Fixes: #320
Browse files Browse the repository at this point in the history
Closes: #386
Pull-request: #386
Pull-request-sha: 7840ad3

Change-Id: I0591873a83837f8f35b0963c0536df1e2675012f
  • Loading branch information
cocolato committed Feb 6, 2024
1 parent 7840ad3 commit cc6a3e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions doc/build/unreleased/320.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. change::
:tags: bug, parser
:tickets: 320

Fixed unexpected syntax error in strict_undefined mode that occurred
when using comprehensions within a function in a Mako Python code block.
Now, the local variable in comprehensions won't be added to the checklist
when using strict_undefined mode.
Pull request courtesy Hai Zhu.
2 changes: 1 addition & 1 deletion test/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@ def test_inline_percent(self):
"bar %% baz",
]

def test_lsitcomp_in_func_strict(self):
def test_listcomp_in_func_strict(self):
t = Template(
"""
<%
Expand Down

0 comments on commit cc6a3e0

Please sign in to comment.