From a3a23bf94934d5d01a997ba14e34d794d157e3ec Mon Sep 17 00:00:00 2001 From: Sebastien Mamessier Date: Fri, 25 Oct 2019 13:55:45 +0200 Subject: [PATCH] Fixed error when using startswith on non-ascii string Signed-off-by: Sebastien Mamessier --- compose/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose/service.py b/compose/service.py index ae4e7665c..f487db7d1 100644 --- a/compose/service.py +++ b/compose/service.py @@ -1806,7 +1806,7 @@ class _CLIBuilder(object): line = p.stdout.readline() if not line: break - if line.startswith(magic_word): + if line.startswith(str(magic_word)): appear = True yield json.dumps({"stream": line})