• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂728dcac5e356ce5b948943f21c0c72a1b2d96122 (tree)
時間2022-01-22 06:01:31
作者John Snow <jsnow@redh...>
CommiterJohn Snow

Log Message

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>

Change Summary

差異

--- a/python/qemu/aqmp/__init__.py
+++ b/python/qemu/aqmp/__init__.py
@@ -26,7 +26,12 @@ import logging
2626 from .error import AQMPError
2727 from .events import EventListener
2828 from .message import Message
29-from .protocol import ConnectError, Runstate, StateError
29+from .protocol import (
30+ ConnectError,
31+ Runstate,
32+ SocketAddrT,
33+ StateError,
34+)
3035 from .qmp_client import ExecInterruptedError, ExecuteError, QMPClient
3136
3237
@@ -48,4 +53,7 @@ __all__ = (
4853 'ConnectError',
4954 'ExecuteError',
5055 'ExecInterruptedError',
56+
57+ # Type aliases
58+ 'SocketAddrT',
5159 )