Simplify reading data from local socket

This commit is contained in:
Marek Marczykowski-Górecki 2017-03-11 01:16:10 +01:00
parent f6e48cb3ff
commit 9d5e974c5b
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -134,7 +134,7 @@ class QubesLocal(QubesBase):
client_socket.shutdown(socket.SHUT_WR)
return_data = b''.join(iter(lambda: client_socket.recv(BUF_SIZE), b''))
return_data = client_socket.makefile('rb').read()
return self._parse_qubesd_response(return_data)