mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
Fixed error when using startswith on non-ascii string
Signed-off-by: Sebastien Mamessier <smamessier@uber.com>
This commit is contained in:
@@ -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})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user