Skip to content

Commit

Permalink
elasticache module: add backward-compatible support for Python 3.3+
Browse files Browse the repository at this point in the history
  • Loading branch information
felixonmars committed Jul 3, 2014
1 parent 1ac79d0 commit c8d9aff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -44,7 +44,7 @@ At the moment, boto supports:
* Amazon Relational Data Service (RDS)
* Amazon DynamoDB
* Amazon SimpleDB
* Amazon ElastiCache
* Amazon ElastiCache (Python 3)
* Amazon Redshift

* Deployment and Management
Expand Down
2 changes: 1 addition & 1 deletion boto/elasticache/layer1.py
Expand Up @@ -1657,7 +1657,7 @@ def _make_request(self, action, verb, path, params):
params['ContentType'] = 'JSON'
response = self.make_request(action=action, verb='POST',
path='/', params=params)
body = response.read()
body = response.read().decode('utf-8')
boto.log.debug(body)
if response.status == 200:
return json.loads(body)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Expand Up @@ -47,7 +47,7 @@ Currently Supported Services
* :doc:`DynamoDB <dynamodb_tut>` -- (:doc:`API Reference <ref/dynamodb>`)
* Relational Data Services 2 (RDS) -- (:doc:`API Reference <ref/rds2>`) -- (:doc:`Migration Guide from v1 <migrations/rds_v1_to_v2>`)
* :doc:`Relational Data Services (RDS) <rds_tut>` -- (:doc:`API Reference <ref/rds>`)
* ElastiCache -- (:doc:`API Reference <ref/elasticache>`)
* ElastiCache -- (:doc:`API Reference <ref/elasticache>`) (Python 3)
* Redshift -- (:doc:`API Reference <ref/redshift>`)
* :doc:`SimpleDB <simpledb_tut>` -- (:doc:`API Reference <ref/sdb>`)

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/elasticache/test_api_interface.py
Expand Up @@ -8,7 +8,7 @@ class TestAPIInterface(AWSMockServiceTestCase):
def test_required_launch_params(self):
""" Make sure only the AWS required params are required by boto """
name = 'test_cache_cluster'
self.set_http_response(status_code=200, body='{}')
self.set_http_response(status_code=200, body=b'{}')
self.service_connection.create_cache_cluster(name)

self.assert_request_parameters({
Expand Down

0 comments on commit c8d9aff

Please sign in to comment.