Skip to content

Commit 248a7e2

Browse files
author
Dmítry Kovalenko
authored
Remove encoding keyword argument from json.loads
1 parent 39e6c17 commit 248a7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consulate/api/base.py

+1-1
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)