python/qemu: fix socket.makefile() typing
commit0add048fbd9992151e4c592977df9cff8558ca60
authorJohn Snow <jsnow@redhat.com>
Thu, 14 May 2020 05:53:43 +0000 (14 01:53 -0400)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Sun, 31 May 2020 16:25:31 +0000 (31 18:25 +0200)
treeb698f92d82a4c748dda9b917d3ba35317ca2cf04
parent3797dbcbb7bf1dffdd74ef84b5b21ed9c825e171
python/qemu: fix socket.makefile() typing

Note:

A bug in typeshed (https://github.com/python/typeshed/issues/3977)
misinterprets the type of makefile(). Work around this by explicitly
stating that we are opening a text-mode file.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200514055403.18902-13-jsnow@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
python/qemu/qmp.py
python/qemu/qtest.py