mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use salt.utils.to_* functions
This commit is contained in:
parent
6399d035a4
commit
b5034067f8
1 changed files with 2 additions and 2 deletions
|
@ -1612,7 +1612,7 @@ def dedent(text, linesep=os.linesep):
|
|||
A wrapper around textwrap.dedent that also sets line endings.
|
||||
'''
|
||||
if isinstance(text, six.text_type):
|
||||
linesep = salt.utils.stringutils.to_unicode(linesep)
|
||||
linesep = salt.utils.to_unicode(linesep)
|
||||
else:
|
||||
linesep = salt.utils.stringutils.to_str(linesep)
|
||||
linesep = salt.utils.to_str(linesep)
|
||||
return linesep.join(textwrap.dedent(text).splitlines())
|
||||
|
|
Loading…
Add table
Reference in a new issue