commit | 8d84adcd736619c2ce510dff1e7ffd3ab08df06a | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Tue Mar 31 17:25:12 2020 +0200 |
committer | GitHub <noreply@github.com> | Tue Mar 31 17:25:12 2020 +0200 |
tree | d95ccebcf82fbe67588887372e1718c3819f0cd7 | |
parent | 5be8241392453751beea21d2e32096c15a8d47db [diff] |
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.