From 2919bebea46574f95e566f57dfd6746c6e1661b9 Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Mon, 18 Nov 2019 15:43:50 +0100 Subject: [PATCH] Fix non ascii chars error. Python2 only Signed-off-by: Ulysses Souza --- compose/service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/compose/service.py b/compose/service.py index f487db7d1..d329be979 100644 --- a/compose/service.py +++ b/compose/service.py @@ -1806,7 +1806,10 @@ class _CLIBuilder(object): line = p.stdout.readline() if not line: break - if line.startswith(str(magic_word)): + # Fix non ascii chars on Python2. To remove when #6890 is complete. + if six.PY2: + magic_word = str(magic_word) + if line.startswith(magic_word): appear = True yield json.dumps({"stream": line})