Merge "Python 3: Replacing unicode with six.text_type for py3 compatibility"
This commit is contained in:
commit
63998b481c
@ -102,7 +102,7 @@ class OutputManager(object):
|
|||||||
def _print(self, item, stream=None):
|
def _print(self, item, stream=None):
|
||||||
if stream is None:
|
if stream is None:
|
||||||
stream = self.print_stream
|
stream = self.print_stream
|
||||||
if six.PY2 and isinstance(item, unicode):
|
if six.PY2 and isinstance(item, six.text_type):
|
||||||
item = item.encode('utf8')
|
item = item.encode('utf8')
|
||||||
print(item, file=stream)
|
print(item, file=stream)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user