Skip to content

Commit

Permalink
Merge "Python 3: Replacing unicode with six.text_type for py3 compati…
Browse files Browse the repository at this point in the history
…bility"
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jul 16, 2015
2 parents a56eac1 + ef467dd commit 63998b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swiftclient/multithreading.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_error_count(self):
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)

Expand Down

0 comments on commit 63998b4

Please sign in to comment.