Skip to content

Commit

Permalink
fix lambda state definition with comment
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hartmann committed Dec 20, 2022
1 parent f6b53b7 commit a75af9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miniflask/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def __init__(self, varid, mf, caller_traceback, cliargs=False, parsefn=False, is
# function source of a lambda looks a little different, because a whole line is returned by 'getsource'
# we assume a k, v pair is given, only missing the brackets for a valid syntax
# Note: if the lambda is not written in a standalone line, it will break the following tweak
_fn_src = "{" + _fn_src + "}"
_fn_src = "{\n" + _fn_src + "\n}"
_ast_mode = "eval"
# find lambda or def expression
fn_lbd_iter = list(iter(
Expand Down

0 comments on commit a75af9c

Please sign in to comment.