Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #415 from cloudant/414-decode-content
Browse files Browse the repository at this point in the history
414 decode content
  • Loading branch information
ricellis authored Dec 12, 2018
2 parents c296a5a + 442526d commit 79af8ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Unreleased

- [FIXED] A performance regression deserializing JSON in version 2.10.1.

# 2.10.1 (2018-11-16)

- [FIXED] Unexpected keyword argument errors when using the library with the
Expand Down
2 changes: 2 additions & 0 deletions src/cloudant/_client_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ def login(self):
"""
No-op method - not implemented here.
"""
# pylint: disable=unnecessary-pass
pass

def logout(self):
"""
No-op method - not implemented here.
"""
# pylint: disable=unnecessary-pass
pass


Expand Down
2 changes: 2 additions & 0 deletions src/cloudant/_common_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ def response_to_json_dict(response, **kwargs):
:returns: dict of JSON response
"""
if response.encoding is None:
response.encoding = 'utf-8'
return json.loads(response.text, **kwargs)

# Classes
Expand Down

0 comments on commit 79af8ef

Please sign in to comment.