1
0
Эх сурвалжийг харах

Fixed error when using startswith on non-ascii string

Signed-off-by: Sebastien Mamessier <[email protected]>
Sebastien Mamessier 6 жил өмнө
parent
commit
a3a23bf949
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      compose/service.py

+ 1 - 1
compose/service.py

@@ -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})