Fixed error when using startswith on non-ascii string

Signed-off-by: Sebastien Mamessier <smamessier@uber.com>
This commit is contained in:
Sebastien Mamessier 2019-10-25 13:55:45 +02:00
parent 4be2fa010a
commit a3a23bf949

View File

@ -1806,7 +1806,7 @@ class _CLIBuilder(object):
line = p.stdout.readline() line = p.stdout.readline()
if not line: if not line:
break break
if line.startswith(magic_word): if line.startswith(str(magic_word)):
appear = True appear = True
yield json.dumps({"stream": line}) yield json.dumps({"stream": line})