]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94192: Fix error for dictionary literals with invalid expression as value. (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 26 Jun 2022 19:07:02 +0000 (12:07 -0700)
committerGitHub <noreply@github.com>
Sun, 26 Jun 2022 19:07:02 +0000 (12:07 -0700)
commit442dd8ffa557018d76adea3058e49cfe8849f851
treeb954dd40f018ede23f91f91b4299b79c94758da7
parent1b27ec5ac62606b6b5da34dfb794d5975949f864
gh-94192: Fix error for dictionary literals with invalid expression as value. (GH-94304)

* Fix error for dictionary literals with invalid expression as value.

* Remove trailing whitespace
(cherry picked from commit 8c237a7a71d52f996f58dc58f6b6ce558d209494)

Co-authored-by: wookie184 <wookie1840@gmail.com>
Grammar/python.gram
Lib/test/test_syntax.py
Misc/NEWS.d/next/Core and Builtins/2022-06-26-14-37-03.gh-issue-94192.ab7tn7.rst [new file with mode: 0644]
Parser/parser.c