Skip to content

Add support for reading files in text mode in GoogleCloudFile#1515

Open
CoteTommy wants to merge 1 commit into
jschneier:masterfrom
CoteTommy:fix-google-read-text-mode
Open

Add support for reading files in text mode in GoogleCloudFile#1515
CoteTommy wants to merge 1 commit into
jschneier:masterfrom
CoteTommy:fix-google-read-text-mode

Conversation

@CoteTommy

Copy link
Copy Markdown

When opening a file with mode='rt', GoogleCloudFile was returning bytes instead of strings.
This adds TextIOWrapper handling similar to the S3 backend to properly support text mode reading.

Fixes the issue where storage.open('file.txt', mode='rt').read() returned bytes instead of strings (1504)

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.

1 participant