mirror of
https://github.com/docker/compose.git
synced 2025-07-21 20:54:32 +02:00
Fix non ascii chars error. Python2 only
Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
This commit is contained in:
parent
a3a23bf949
commit
2919bebea4
@ -1806,7 +1806,10 @@ class _CLIBuilder(object):
|
|||||||
line = p.stdout.readline()
|
line = p.stdout.readline()
|
||||||
if not line:
|
if not line:
|
||||||
break
|
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
|
appear = True
|
||||||
yield json.dumps({"stream": line})
|
yield json.dumps({"stream": line})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user