Skip to content

Commit

Permalink
python3 binary to string decoding working
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjlaw committed Mar 11, 2016
1 parent d213edd commit 8a9afae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sidomo/sidomo.py
Expand Up @@ -9,7 +9,6 @@
import docker
import click, os


# sets the docker host from your environment variables
client = docker.Client(
**docker.utils.kwargs_from_env(assert_hostname=False))
Expand Down Expand Up @@ -119,4 +118,4 @@ def dodo(do, image, sharedir, display):

with Container(image, volumes=volumes, cleanup=True, environment=environment) as c:
for output_line in c.run(do):
print('{0!s}:\t {1!s}'.format(image, output_line))
print('{}:\t {}'.format(image, output_line.decode('utf-8')))

0 comments on commit 8a9afae

Please sign in to comment.