diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-01-01 14:33:23 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-01-04 16:46:52 -0500 |
commit | 40315e6ebb754b5584680c5193540e4638b792a3 (patch) | |
tree | 1829b6baaadcd1a45fee933ab67fe65d939cb680 /docs/jsonvalidator.py | |
parent | ab8081fab66eafcb35021f45ffae0648b658733e (diff) | |
download | meson-40315e6ebb754b5584680c5193540e4638b792a3.zip meson-40315e6ebb754b5584680c5193540e4638b792a3.tar.gz meson-40315e6ebb754b5584680c5193540e4638b792a3.tar.bz2 |
mtest: simplify deprecated access to current loop
These functions constantly want the current asyncio loop, and we run a
function call each time to get it. And the function call is a deprecated
one. Python 3.7 brings the more explicit get_running_loop for use when
we know we're inside one, with the aim of getting rid of get_event_loop
once support for python <3.7 disappears. Meson no longer supports python
<3.7 either.
Switch to the new API, and save the reference for reuse instead of
constantly re-calculating it.
Diffstat (limited to 'docs/jsonvalidator.py')
0 files changed, 0 insertions, 0 deletions