mbox series

[0/2] python/qemu: follow-up changes for ConsoleSocket

Message ID 20200715204814.2630-1-robert.foley@linaro.org (mailing list archive)
Headers show
Series python/qemu: follow-up changes for ConsoleSocket | expand

Message

Robert Foley July 15, 2020, 8:48 p.m. UTC
This patch series introduces a few follow-up changes after the introduction of 
ConsoleSocket.

The first patch introduces cleanup changes for pylint and flake8.

The second patch allows machine.py to use a single type for the console_socket,
a ConsoleSocket.
Since machine.py will use ConsoleSocket for both the draining and non-draining
cases, we changed ConsoleSocket to handle the case where it does not drain the
socket at all and essentially behaves like a socket.

Robert Foley (2):
  python/qemu: Cleanup changes to ConsoleSocket
  python/qemu: Change ConsoleSocket to optionally drain socket.

 python/qemu/console_socket.py | 133 +++++++++++++++++++---------------
 python/qemu/machine.py        |  14 ++--
 python/qemu/pylintrc          |   2 +-
 3 files changed, 82 insertions(+), 67 deletions(-)