Using string class to detect type

Using string class instead unicode that has been removed from python 3
This commit is contained in:
Daniel Guerrero 2019-07-30 14:15:47 -05:00
parent 364bd0720d
commit 1ce162f056

View File

@ -25,7 +25,7 @@ class DynamoDBStreamsHandler(BaseResponse):
shard_iterator_type = self._get_param('ShardIteratorType') shard_iterator_type = self._get_param('ShardIteratorType')
sequence_number = self._get_param('SequenceNumber') sequence_number = self._get_param('SequenceNumber')
# according to documentation sequence_number param should be string # according to documentation sequence_number param should be string
if isinstance(sequence_number, str) or isinstance(sequence_number, unicode): if isinstance(sequence_number, "".__class__):
sequence_number = int(sequence_number) sequence_number = int(sequence_number)
return self.backend.get_shard_iterator(arn, shard_id, return self.backend.get_shard_iterator(arn, shard_id,