Skip to content

Commit 3980bd9

Browse files
authored
Merge pull request gmr#125 from zerodayyy/patch-1
Fix json.loads call to support Python 3.9
2 parents 39e6c17 + 248a7e2 commit 3980bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consulate/api/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def _demarshal(self, body):
165165
body = body.decode('utf-8')
166166
except UnicodeDecodeError:
167167
pass
168-
value = json.loads(body, encoding='utf-8')
168+
value = json.loads(body)
169169
except (TypeError, ValueError):
170170
return body
171171
if value is None:

0 commit comments

Comments
 (0)