Fix several things causing tracebacks with unicode cwd (#27731)

Fixes #27511
This commit is contained in:
Toshio Kuratomi 2017-08-04 06:25:08 -07:00 committed by Sam Doran
commit 3f12fccd02
4 changed files with 6 additions and 6 deletions

View file

@ -90,7 +90,7 @@ def stringc(text, color):
if ANSIBLE_COLOR:
color_code = parsecolor(color)
return "\n".join([u"\033[%sm%s\033[0m" % (color_code, t) for t in text.split('\n')])
return u"\n".join([u"\033[%sm%s\033[0m" % (color_code, t) for t in text.split(u'\n')])
else:
return text