Skip to content

Change download_as_string to download_as_bytes in gcs submodule#571

Merged
mpenkov merged 2 commits intopiskvorky:developfrom
alexandreyc:fix-gcs-deprecated
Dec 30, 2020
Merged

Change download_as_string to download_as_bytes in gcs submodule#571
mpenkov merged 2 commits intopiskvorky:developfrom
alexandreyc:fix-gcs-deprecated

Conversation

@alexandreyc
Copy link
Copy Markdown
Contributor

Hello,

According to the documentation of download_as_string, this method is being deprecated in favor of its alias download_as_bytes.

Here is a PR that update the related code. I also updated some broken links to the official documentation.

Alexandre

@piskvorky
Copy link
Copy Markdown
Owner

piskvorky commented Dec 28, 2020

Thanks Alexandre, much appreciated. CC @petedannemann – can you review please?

@petedannemann
Copy link
Copy Markdown
Contributor

LGTM! Nice work. Very odd that Google decided to make this fix to download_as_string and not upload_from_string

@petedannemann
Copy link
Copy Markdown
Contributor

I am confused about how coveralls is reporting that this change caused our test coverage to drop by 5.5%

@mpenkov
Copy link
Copy Markdown
Collaborator

mpenkov commented Dec 29, 2020

I think the drop in coverage is entirely unrelated to this PR.

I'm rolling out a github actions workflow to do the building and testing. Right now it's running parallel to Travis CI. I think it may be affecting the coveralls results.

@mpenkov mpenkov changed the title [GCS] Update to use download_as_bytes instead of download_as_string Change download_as_bytes to download_as_string in gcs submodule Dec 30, 2020
@mpenkov mpenkov merged commit 3927ff5 into piskvorky:develop Dec 30, 2020
@mpenkov
Copy link
Copy Markdown
Collaborator

mpenkov commented Dec 30, 2020

Merged! Thank you for the contribution, and congrats on your first smart_open PR @alexandreyc ! 🍾

@alexandreyc
Copy link
Copy Markdown
Contributor Author

Thank you all!

Comment thread CHANGELOG.md
@mpenkov mpenkov changed the title Change download_as_bytes to download_as_string in gcs submodule Change download_as_string to download_as_bytes in gcs submodule Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants