diff --git a/lib/ansible/plugins/callback/logentries.py b/lib/ansible/plugins/callback/logentries.py index f5e80d3be76..d12d248900e 100644 --- a/lib/ansible/plugins/callback/logentries.py +++ b/lib/ansible/plugins/callback/logentries.py @@ -78,10 +78,6 @@ except ImportError: from ansible.plugins.callback import CallbackBase -def to_unicode(ch): - return codecs.unicode_escape_decode(ch)[0] - - def is_unicode(ch): return isinstance(ch, unicode) @@ -106,7 +102,7 @@ class PlainTextSocketAppender(object): self.INVALID_TOKEN = ("\n\nIt appears the LOGENTRIES_TOKEN " "parameter you entered is incorrect!\n\n") # Unicode Line separator character \u2028 - self.LINE_SEP = to_unicode('\u2028') + self.LINE_SEP = u'\u2028' self.verbose = verbose self._conn = None