Преглед изворни кода

Fix non ascii chars error. Python2 only

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza пре 6 година
родитељ
комит
2919bebea4
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      compose/service.py

+ 4 - 1
compose/service.py

@@ -1806,7 +1806,10 @@ class _CLIBuilder(object):
                 line = p.stdout.readline()
                 if not line:
                     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
                 yield json.dumps({"stream": line})