summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorJohn Snow2022-01-11 00:28:48 +0100
committerJohn Snow2022-01-21 22:01:31 +0100
commit728dcac5e356ce5b948943f21c0c72a1b2d96122 (patch)
treeb6a68136a060414bf10f7ba1a461b4539c5ada58 /python
parentpython/aqmp: copy type definitions from qmp (diff)
downloadqemu-728dcac5e356ce5b948943f21c0c72a1b2d96122.tar.gz
qemu-728dcac5e356ce5b948943f21c0c72a1b2d96122.tar.xz
qemu-728dcac5e356ce5b948943f21c0c72a1b2d96122.zip
python/aqmp: add SocketAddrT to package root
It's a commonly needed definition, it can be re-exported by the root. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Beraldo Leal <bleal@redhat.com>
Diffstat (limited to 'python')
-rw-r--r--python/qemu/aqmp/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/python/qemu/aqmp/__init__.py b/python/qemu/aqmp/__init__.py
index 173556404d..05f467c141 100644
--- a/python/qemu/aqmp/__init__.py
+++ b/python/qemu/aqmp/__init__.py
@@ -26,7 +26,12 @@ import logging
from .error import AQMPError
from .events import EventListener
from .message import Message
-from .protocol import ConnectError, Runstate, StateError
+from .protocol import (
+ ConnectError,
+ Runstate,
+ SocketAddrT,
+ StateError,
+)
from .qmp_client import ExecInterruptedError, ExecuteError, QMPClient
@@ -48,4 +53,7 @@ __all__ = (
'ConnectError',
'ExecuteError',
'ExecInterruptedError',
+
+ # Type aliases
+ 'SocketAddrT',
)