Skip to content

Commit 8fb3d44

Browse files
committed
`encoding' keyword argument to json.loads: Deprecated since version 3.1, will be removed in version 3.9
1 parent c4fc523 commit 8fb3d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycorenlp/corenlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def annotate(self, text, properties=None):
3939
if ('outputFormat' in properties
4040
and properties['outputFormat'] == 'json'):
4141
try:
42-
output = json.loads(output, encoding='utf-8', strict=True)
42+
output = json.loads(output, strict=True)
4343
except:
4444
pass
4545
return output

0 commit comments

Comments
 (0)