Fix UnicodeEncodeErrors in output of 'build', 'run' and 'up'

Squashed version of #125.
Closes #112.
This commit is contained in:
Maurits van Mastrigt 2014-03-03 15:21:53 +01:00 committed by Aanand Prasad
commit 710cd38591
3 changed files with 3 additions and 3 deletions

View file

@ -81,7 +81,7 @@ class SocketClient:
chunk = socket.recv(4096)
if chunk:
stream.write(chunk)
stream.write(chunk.encode(stream.encoding or 'utf8'))
stream.flush()
else:
break