修訂 | 728dcac5e356ce5b948943f21c0c72a1b2d96122 (tree) |
---|---|
時間 | 2022-01-22 06:01:31 |
作者 | John Snow <jsnow@redh...> |
Commiter | John Snow |
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>
@@ -26,7 +26,12 @@ import logging | ||
26 | 26 | from .error import AQMPError |
27 | 27 | from .events import EventListener |
28 | 28 | from .message import Message |
29 | -from .protocol import ConnectError, Runstate, StateError | |
29 | +from .protocol import ( | |
30 | + ConnectError, | |
31 | + Runstate, | |
32 | + SocketAddrT, | |
33 | + StateError, | |
34 | +) | |
30 | 35 | from .qmp_client import ExecInterruptedError, ExecuteError, QMPClient |
31 | 36 | |
32 | 37 |
@@ -48,4 +53,7 @@ __all__ = ( | ||
48 | 53 | 'ConnectError', |
49 | 54 | 'ExecuteError', |
50 | 55 | 'ExecInterruptedError', |
56 | + | |
57 | + # Type aliases | |
58 | + 'SocketAddrT', | |
51 | 59 | ) |