summaryrefslogtreecommitdiffstats
path: root/Parser/action_helpers.c
diff options
context:
space:
mode:
authorMatthieu Dartiailh <marul@laposte.net>2022-04-05 13:47:13 (GMT)
committerGitHub <noreply@github.com>2022-04-05 13:47:13 (GMT)
commitaa0f056a00c4bcaef83d729e042359ddae903382 (patch)
tree45b026af73776c5f38423e44b989df335f52f405 /Parser/action_helpers.c
parentf1606a5ba50bdc4e7d335d62297b4b4043a25e6e (diff)
downloadcpython-aa0f056a00c4bcaef83d729e042359ddae903382.zip
cpython-aa0f056a00c4bcaef83d729e042359ddae903382.tar.gz
cpython-aa0f056a00c4bcaef83d729e042359ddae903382.tar.bz2
bpo-47212: Improve error messages for un-parenthesized generator expressions (GH-32302)
Diffstat (limited to 'Parser/action_helpers.c')
-rw-r--r--Parser/action_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/action_helpers.c b/Parser/action_helpers.c
index e5d7b66..d1be679 100644
--- a/Parser/action_helpers.c
+++ b/Parser/action_helpers.c
@@ -1145,7 +1145,7 @@ _PyPegen_get_expr_name(expr_ty e)
}
}
-static inline expr_ty
+expr_ty
_PyPegen_get_last_comprehension_item(comprehension_ty comprehension) {
if (comprehension->ifs == NULL || asdl_seq_LEN(comprehension->ifs) == 0) {
return comprehension->iter;