summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorBatuhan Taskaya <batuhanosmantaskaya@gmail.com>2020-05-21 22:57:52 +0300
committerGitHub <noreply@github.com>2020-05-21 20:57:52 +0100
commitf50516e6a978ee694232512399dd1ab47aaebab1 (patch)
tree3c757f56126f25fa19edec7feb84ea67359ae32d /Python/errors.c
parenta487a39dca4c41305928c7dfdbcb0b3aa344683b (diff)
downloadcpython-git-f50516e6a978ee694232512399dd1ab47aaebab1.tar.gz
bpo-40334: Correctly generate C parser when assigned var is None (GH-20296)
When there are 2 negative lookaheads in the same rule, let's say `!"(" blabla "," !")"`, there will the 2 `FunctionCall`'s where assigned value is None. Currently when the `add_var` is called the first one will be ignored but when the second lookahead's var is sent to dedupe it will be returned as `None_1` and this won't be ignored by the declaration generator in the `visit_Alt`. This patch adds an explicit check to `add_var` to distinguish whether if there is a variable or not.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions