Closed jpmckinney closed 2 months ago
Does this mean we can then remove the except UnicodeDecodeError as err: ... raise BadlyFormedJSONErrorUTF8(*err.args)
below? Tests run ok without it.
If so we can then technically remove the BadlyFormedJSONErrorUTF8 class entirely as that's the only place it's used. However other people may be using it and thus get breakages, so maybe it's best to leave the class but put a docstring on it saying it is deprecated?
(Also a note in CHANGELOG.md would be good, thanks!)
Done
Thank you!
Merged in, thanks!
Otherwise:
encoding="utf-8" needs to be removed, as codes.open will use mode "rt" instead of "rb" if it's present, and ijson will read the bytes as UTF-8 anyway.
Note that ijson has no special exception class for UTF-8 errors, so one test had to change.