mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Change unicode() --> six.text_type() for Python 3
This commit is contained in:
@@ -72,7 +72,7 @@ class PlainTextRenderer(renderers.BaseRenderer):
|
||||
|
||||
def render(self, data, media_type=None, renderer_context=None):
|
||||
if not isinstance(data, six.string_types):
|
||||
data = unicode(data)
|
||||
data = six.text_type(data)
|
||||
return data.encode(self.charset)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user