python/qemu/console_socket.py: avoid encoding to/from string
commitaf0db8825400ea8c79fd77ed4ba6fb6699bd0855
authorJohn Snow <jsnow@redhat.com>
Tue, 6 Oct 2020 23:58:13 +0000 (6 19:58 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 20 Oct 2020 13:37:57 +0000 (20 09:37 -0400)
tree857b181b35bdbab790f8c94d3563838e4c5f9c31
parente35c13826768cf4224b4f9c6884b08f3a7ed887e
python/qemu/console_socket.py: avoid encoding to/from string

We can work directly in bytes instead of translating back and forth to
string, which removes the question of which encodings to use.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 20201006235817.3280413-17-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/console_socket.py