]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39965: Correctly raise SyntaxError if await is used outside async functions when...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 15 Mar 2020 04:46:26 +0000 (21:46 -0700)
committerGitHub <noreply@github.com>
Sun, 15 Mar 2020 04:46:26 +0000 (21:46 -0700)
commitf7e32fcbd65490c921e1836c2399827d14d0eb7b
treef141bfcbdce54cd8d8694e99d3d9b2e4619a0c28
parent4abe77c725b1d0a2187b7160924258c9810b824c
bpo-39965: Correctly raise SyntaxError if await is used outside async functions when PyCF_ALLOW_TOP_LEVEL_AWAIT is set (GH-19010)

(cherry picked from commit 90235810ec28ca954bbf4b61a5ae5df7a00db409)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Lib/test/test_builtin.py
Misc/NEWS.d/next/Core and Builtins/2020-03-15-03-52-01.bpo-39965.Od3ZdP.rst [new file with mode: 0644]
Python/compile.c