]> git.ipfire.org Git - thirdparty/qemu.git/commit
python: backport 'Use @asynciocontextmanager'
authorJohn Snow <jsnow@redhat.com>
Tue, 6 Jun 2023 17:45:44 +0000 (13:45 -0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 16 Sep 2025 20:35:35 +0000 (23:35 +0300)
commit83b8187abba7202e338fbad809339075ea44c563
tree8ace875e2a492901a46d46d129d4c2db82d13ae6
parentce44e28ed84123c66f340b94f0ce1410b3c08eec
python: backport 'Use @asynciocontextmanager'

This removes a non-idiomatic use of a "coroutine callback" in favor of
something a bit more standardized.

Signed-off-by: John Snow <jsnow@redhat.com>
cherry picked from commit python-qemu-qmp@commit 97f7ffa3be17a50544b52767d14b6fd478c07b9e
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
(cherry picked from commit 0408b8d7a086486f5c1887798be744b2d73bcda9)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
python/qemu/qmp/protocol.py