Merge pull request #6982 from smamessier/fix_non_ascii_error

Fixed non-ascii error when using COMPOSE_DOCKER_CLI_BUILD=1 for Buildkit
This commit is contained in:
Ulysses Souza 2019-11-18 16:45:04 +01:00 committed by GitHub
commit 2887d82d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1806,6 +1806,9 @@ class _CLIBuilder(object):
line = p.stdout.readline()
if not line:
break
# 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})