Skip to content

Commit b5eb58e

Browse files
committed
Remove pprint_thing usage and import
1 parent c197561 commit b5eb58e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/io/json/_json.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
infer_compression,
2626
stringify_path,
2727
)
28-
from pandas.io.formats.printing import pprint_thing
2928
from pandas.io.parsers import _validate_integer
3029

3130
from ._normalize import convert_to_line_delimits
@@ -843,9 +842,7 @@ def check_keys_split(self, decoded):
843842
bad_keys = set(decoded.keys()).difference(set(self._split_keys))
844843
if bad_keys:
845844
bad_keys = ", ".join(bad_keys)
846-
raise ValueError(
847-
f"JSON data had unexpected key(s): {pprint_thing(bad_keys)}"
848-
)
845+
raise ValueError(f"JSON data had unexpected key(s): {bad_keys}")
849846

850847
def parse(self):
851848

0 commit comments

Comments
 (0)