From 9d5e974c5b98bdf079b03bc79e8f630cef393329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 11 Mar 2017 01:16:10 +0100 Subject: [PATCH] Simplify reading data from local socket --- qubesmgmt/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesmgmt/app.py b/qubesmgmt/app.py index 173de46..699656f 100644 --- a/qubesmgmt/app.py +++ b/qubesmgmt/app.py @@ -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)