We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 586c8c7 commit 703e770Copy full SHA for 703e770
1 file changed
clamd.py
@@ -224,14 +224,14 @@ def _recv_response(self):
224
"""
225
receive line from clamd
226
227
- with contextlib.closing(self.clamd_socket.makefile('r+w')) as f:
+ with contextlib.closing(self.clamd_socket.makefile('rb')) as f:
228
return f.readline().decode('utf-8').strip()
229
230
def _recv_response_multiline(self):
231
232
receive multiple line response from clamd and strip all whitespace characters
233
234
235
return f.read().decode('utf-8')
236
237
def _close_socket(self):
0 commit comments