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

Commit 79af8ef

Browse files
authored
Merge pull request #415 from cloudant/414-decode-content
414 decode content
2 parents c296a5a + 442526d commit 79af8ef

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
3+
- [FIXED] A performance regression deserializing JSON in version 2.10.1.
4+
15
# 2.10.1 (2018-11-16)
26

37
- [FIXED] Unexpected keyword argument errors when using the library with the

src/cloudant/_client_session.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,14 @@ def login(self):
9595
"""
9696
No-op method - not implemented here.
9797
"""
98+
# pylint: disable=unnecessary-pass
9899
pass
99100

100101
def logout(self):
101102
"""
102103
No-op method - not implemented here.
103104
"""
105+
# pylint: disable=unnecessary-pass
104106
pass
105107

106108

src/cloudant/_common_util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ def response_to_json_dict(response, **kwargs):
288288
289289
:returns: dict of JSON response
290290
"""
291+
if response.encoding is None:
292+
response.encoding = 'utf-8'
291293
return json.loads(response.text, **kwargs)
292294

293295
# Classes

0 commit comments

Comments
 (0)