qemu-cr16/python/qemu/qmp
John Snow cb0e438040 python: backport 'EventListener: add __repr__ method'
When the object is not stateful, this repr method prints what you'd
expect. In cases where there are pending events, the output is augmented
to illustrate that.

The object itself has no idea if it's "active" or not, so it cannot
convey that information.

Signed-off-by: John Snow <jsnow@redhat.com>
cherry picked from commit python-qemu-qmp@8a6f2e136dae395fec8aa5fd77487cfe12d9e05e
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2025-09-15 14:36:01 -04:00
..
__init__.py python: rename qemu.aqmp to qemu.qmp 2022-04-21 11:01:00 -04:00
error.py python: backport 'Change error classes to have better repr methods' 2025-09-15 14:36:01 -04:00
events.py python: backport 'EventListener: add __repr__ method' 2025-09-15 14:36:01 -04:00
legacy.py python/qemu: rename command() to cmd() 2023-10-12 14:21:43 -04:00
message.py python: backport 'Change error classes to have better repr methods' 2025-09-15 14:36:01 -04:00
models.py docs/interop: Convert qmp-spec.txt to rST 2023-05-22 10:21:01 +02:00
protocol.py python: backport 'Change error classes to have better repr methods' 2025-09-15 14:36:01 -04:00
py.typed python: rename qemu.aqmp to qemu.qmp 2022-04-21 11:01:00 -04:00
qmp_client.py python: backport 'Change error classes to have better repr methods' 2025-09-15 14:36:01 -04:00
qmp_shell.py python/qemu: rename command() to cmd() 2023-10-12 14:21:43 -04:00
qmp_tui.py python: bump minimum requirements so they are compatible with 3.12 2023-07-07 12:49:22 +02:00
util.py python: update for mypy 0.950 2022-06-06 09:26:54 +02:00