diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-09-03 15:35:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 15:35:36 (GMT) |
commit | 270e2492900275fe2ec93c7982fa175ed132e6b9 (patch) | |
tree | 22ca50b0dc36d8795344ec03e3913ae448fc2fd8 /Python/Python-ast.c | |
parent | be17295280c89771c80f317da072f6c0d016cc60 (diff) | |
download | cpython-270e2492900275fe2ec93c7982fa175ed132e6b9.zip cpython-270e2492900275fe2ec93c7982fa175ed132e6b9.tar.gz cpython-270e2492900275fe2ec93c7982fa175ed132e6b9.tar.bz2 |
[3.9] Fix 'gather' rules in the python parser generator (GH-22021) (GH-22080)
Currently, empty sequences in gather rules make the conditional for
gather rules fail as empty sequences evaluate as "False". We need to
explicitly check for "None" (the failure condition) to avoid false
negatives.
(cherry picked from commit e55a0e9)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions