Merge "Python 3: Replacing unicode with six.text_type for py3 compatibility"

This commit is contained in:
Jenkins 2015-07-16 19:18:33 +00:00 committed by Gerrit Code Review
commit 63998b481c

@ -102,7 +102,7 @@ class OutputManager(object):
def _print(self, item, stream=None):
if stream is None:
stream = self.print_stream
if six.PY2 and isinstance(item, unicode):
if six.PY2 and isinstance(item, six.text_type):
item = item.encode('utf8')
print(item, file=stream)