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

Commit

Permalink
Merge pull request #664 from gamechanger/tnt-encode-error
Browse files Browse the repository at this point in the history
Remove extraneous utf-8 decode in CLI socket recv
  • Loading branch information
thieman committed Mar 17, 2016
2 parents 4531376 + 54f9a6f commit 498e9d5
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 498e9d5

Please sign in to comment.