From 38a4734f95d6d6455d11725cd06b291cfe963348 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Wed, 26 Nov 2014 11:13:43 -0500 Subject: [PATCH] Fixes for py26 and py33. --- moto/kinesis/exceptions.py | 2 +- moto/kinesis/responses.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/kinesis/exceptions.py b/moto/kinesis/exceptions.py index 981a577ec..4ba4c8bf8 100644 --- a/moto/kinesis/exceptions.py +++ b/moto/kinesis/exceptions.py @@ -16,4 +16,4 @@ class ResourceNotFoundError(BadRequest): class StreamNotFoundError(ResourceNotFoundError): def __init__(self, stream_name): super(StreamNotFoundError, self).__init__( - 'Stream {} under account 123456789012 not found.'.format(stream_name)) + 'Stream {0} under account 123456789012 not found.'.format(stream_name)) diff --git a/moto/kinesis/responses.py b/moto/kinesis/responses.py index fe57cbfd1..43ed8b06a 100644 --- a/moto/kinesis/responses.py +++ b/moto/kinesis/responses.py @@ -10,7 +10,7 @@ class KinesisResponse(BaseResponse): @property def parameters(self): - return json.loads(self.body) + return json.loads(self.body.decode("utf-8")) @property def kinesis_backend(self):