Skip to content

Commit 63998b4

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Python 3: Replacing unicode with six.text_type for py3 compatibility"
2 parents a56eac1 + ef467dd commit 63998b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swiftclient/multithreading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get_error_count(self):
102102
def _print(self, item, stream=None):
103103
if stream is None:
104104
stream = self.print_stream
105-
if six.PY2 and isinstance(item, unicode):
105+
if six.PY2 and isinstance(item, six.text_type):
106106
item = item.encode('utf8')
107107
print(item, file=stream)
108108

0 commit comments

Comments
 (0)