Skip to content

Commit d6124b6

Browse files
committed
Use six.string_types instead of basestring
1 parent 1529f5c commit d6124b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cassandra/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def _handle_options_response(self, options_response):
385385
remote_supported_compressions)
386386
else:
387387
compression_type = None
388-
if isinstance(self.compression, basestring):
388+
if isinstance(self.compression, six.string_types):
389389
# the user picked a specific compression type ('snappy' or 'lz4')
390390
if self.compression not in remote_supported_compressions:
391391
raise ProtocolError(

0 commit comments

Comments
 (0)