Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Remove extraneous utf-8 decode in CLI socket recv
Browse files Browse the repository at this point in the history
  • Loading branch information
thieman committed Mar 17, 2016
1 parent 4531376 commit 54f9a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dusty/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _run_command(sock, command):
data = sock.recv(65535)
timer.cancel()
if data:
stripped = data.decode('utf-8').replace(constants.SOCKET_ACK, '').replace(constants.SOCKET_TERMINATOR, '').replace(constants.SOCKET_ERROR_TERMINATOR, '')
stripped = data.replace(constants.SOCKET_ACK, '').replace(constants.SOCKET_TERMINATOR, '').replace(constants.SOCKET_ERROR_TERMINATOR, '')
sys.stdout.write(stripped)
if data.endswith(constants.SOCKET_TERMINATOR):
break
Expand Down

0 comments on commit 54f9a6f

Please sign in to comment.