Skip to content

Commit 953757a

Browse files
CLN: remove simplejson (pandas-dev#29169)
1 parent a38a004 commit 953757a

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

pandas/io/msgpack/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def packb(o, **kwargs):
4848
return Packer(**kwargs).pack(o)
4949

5050

51-
# alias for compatibility to simplejson/marshal/pickle.
51+
# alias for compatibility to json/marshal/pickle.
5252
load = unpack
5353
loads = unpackb
5454

pandas/io/msgpack/_packer.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ cdef class Packer:
6060
6161
:param callable default:
6262
Convert user type to builtin type that Packer supports.
63-
See also simplejson's document.
6463
:param str encoding:
6564
Convert unicode to bytes with this encoding. (default: 'utf-8')
6665
:param str unicode_errors:

pandas/io/msgpack/_unpacker.pyx

+1-2
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,10 @@ cdef class Unpacker:
200200
:param callable object_hook:
201201
When specified, it should be callable.
202202
Unpacker calls it with a dict argument after unpacking msgpack map.
203-
(See also simplejson)
204203
205204
:param callable object_pairs_hook:
206205
When specified, it should be callable. Unpacker calls it with a list
207-
of key-value pairs after unpacking msgpack map. (See also simplejson)
206+
of key-value pairs after unpacking msgpack map.
208207
209208
:param str encoding:
210209
Encoding used for decoding msgpack raw.

pandas/util/_print_versions.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import codecs
2+
import json
23
import locale
34
import os
45
import platform
@@ -105,11 +106,6 @@ def show_versions(as_json=False):
105106
deps_blob.append((modname, ver))
106107

107108
if as_json:
108-
try:
109-
import json
110-
except ImportError:
111-
import simplejson as json
112-
113109
j = dict(system=dict(sys_info), dependencies=dict(deps_blob))
114110

115111
if as_json is True:

0 commit comments

Comments
 (0)