Closed deathaxe closed 3 years ago
This PR...
open_compat
file_not_found_error
fobj
f
open(..., encoding='utf-8')
json.load(fobj)
json.loads(fobj.read())
Looks good to me, thanks for cleaning this up!
This PR...
open_compat
andfile_not_found_error
module which were required for compatibility with python 2 only.fobj
as file object variable instead off
or arbitrary other characters.open(..., encoding='utf-8')
instead of manually handling thatjson.load(fobj)
overjson.loads(fobj.read())