Using string class to detect type
Using string class instead unicode that has been removed from python 3
This commit is contained in:
parent
364bd0720d
commit
1ce162f056
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user