Skip to content

python/qemu: qmp: Fix, delint and improvements

Wainer dos Santos Moschetta qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v15 patches 12 repliesApplied

Changes in v2 from the cover letter

- Rebased to master. No conflicts.
- Added docstring describing the allowed value of the new timeout option in accept() (patch 03) [jsnow]
- Set the new timeout option to 15.0 by default [philmd]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5python/qemu: qmp: Replace socket.error with OSErrorpython/qemu/qmp.py+8 -80 replies
2/5python/qemu: Delint the qmp modulepython/qemu/qmp.py+41 -100 replies
3/5python/qemu: qmp: Make accept()'s timeout configurablepython/qemu/qmp.py+9 -21 reply
4/5python/qemu: qmp: Make QEMUMonitorProtocol a context managerpython/qemu/qmp.py+13 -21 reply
5/5python/qemu: qmp: Remove unnused attributespython/qemu/qmp.py+0 -40 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchJohn SnowPhilippe Mathieu-Daudé
1/5R-b
2/5R-b
3/5R-b R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] python/qemu: qmp: Fix, delint and improvements

I started fixing an issue on exception handling which in some places currently use the deprecated (in Python 3.3) socket.error. Then I ended up delinting the module code and making some improvements.

Changes in v2:
- Rebased to master. No conflicts.
- Added docstring describing the allowed value of the new timeout option in accept() (patch 03) [jsnow]
- Set the new timeout option to 15.0 by default [philmd]

v1: https://www.mail-archive.com/[email protected]/msg667479.html

Git:
- Tree: https://github.com/wainersm/qemu
- Branch: python_qmp_sockets_error-v2

CI:
- Travis (FAIL): https://travis-ci.org/wainersm/qemu/builds/645583812
Jobs failures aren't related with these changes

Wainer dos Santos Moschetta (5):
python/qemu: qmp: Replace socket.error with OSError python/qemu: Delint the qmp module
python/qemu: qmp: Make accept()'s timeout configurable python/qemu: qmp: Make QEMUMonitorProtocol a context manager python/qemu: qmp: Remove unnused attributes

 python/qemu/qmp.py | 97 +++++++++++++++++++++++++++++++++-------------
 1 file changed, 71 insertions(+), 26 deletions(-)
Signature · 1 line
2.23.0