Closed daggaz closed 2 years ago
The changes in PR test the input "file" to see if it returns bytes
or str
and wraps any byte-file in an io.TextIOWrapper
. The encoding is used by the TextIOWrapper
is guessed from:
Content-Type
header encoding
json_stream.load(fp)
does not handlefp
s that producebytes
(such as those returned fromurllib.request.urlopen()
).This issue was raised by @yyellin in #9.
See the discussion there for more details.