python/qemu: qmp: Replace socket.error with OSError
commit10e163c0395f5c9460ec2f2fe7947a1d056cda30
authorWainer dos Santos Moschetta <wainersm@redhat.com>
Fri, 27 Dec 2019 13:40:57 +0000 (27 10:40 -0300)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 7 Feb 2020 14:12:48 +0000 (7 15:12 +0100)
tree2fdb9a12b81905a5ec8d1f1f270fd0290ab19062
parent863d2ed5823f90c42dcd481687cc99cbc9c4a17c
python/qemu: qmp: Replace socket.error with OSError

The socket.error is deprecated from Python 3.3, instead it is
made a link to OSError. This change replaces the occurences
of socket.error with OSError.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-Id: <20191227134101.244496-2-wainersm@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
python/qemu/qmp.py