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

Remove encoding parameter from json.load for Python 3.9 compatibility. #954

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyspider/database/mongodb/taskdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _parse(self, data):
if data[each]:
if isinstance(data[each], bytearray):
data[each] = str(data[each])
data[each] = json.loads(data[each], encoding='utf8')
data[each] = json.loads(data[each])
else:
data[each] = {}
return data
Expand Down