Skip to content

Fix reading binary files/streams by adjusting encoding to match mode#76

Merged
ets merged 2 commits into
ets:mainfrom
singer-contrib:fix-tests
Jan 6, 2024
Merged

Fix reading binary files/streams by adjusting encoding to match mode#76
ets merged 2 commits into
ets:mainfrom
singer-contrib:fix-tests

Conversation

@amotl

@amotl amotl commented Dec 13, 2023

Copy link
Copy Markdown
Contributor

When reading in binary mode, undefine `encoding`.
Otherwise, `smart_open` will return a `TextIOWrapper` in `"r"` mode.
However, reading binary streams needs a `BufferedReader`.
@ets
ets merged commit f538266 into ets:main Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants