mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
Fix several things causing tracebacks with unicode cwd (#27731)
Fixes #27511
This commit is contained in:
parent
181b31e282
commit
3f12fccd02
4 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue