diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-31 17:25:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-31 17:25:12 +0200 |
commit | 8d84adcd736619c2ce510dff1e7ffd3ab08df06a (patch) | |
tree | d95ccebcf82fbe67588887372e1718c3819f0cd7 /Python/compile.c | |
parent | 5be8241392453751beea21d2e32096c15a8d47db (diff) | |
download | cpython-git-8d84adcd736619c2ce510dff1e7ffd3ab08df06a.tar.gz |
bpo-32591: _PyErr_WarnUnawaitedCoroutine() sets source (GH-19247)
The _PyErr_WarnUnawaitedCoroutine() fallback now also sets the
coroutine object as the source of the warning, as done by the Python
implementation warnings._warn_unawaited_coroutine().
Moreover, don't truncate the coroutine name: Python supports
arbitrary string length to format the message.
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions