Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix reading binary files/streams by adjusting
encoding
to match mode
When reading in binary mode, undefine `encoding`. Otherwise, `smart_open` will return a `TextIOWrapper` in `"r"` mode. However, reading binary streams needs a `BufferedReader`.
- Loading branch information