Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

fix: remove trailing commas from error message constants - #505

Merged
gcf-merge-on-green[bot] merged 2 commits into
googleapis:masterfrom
rjw57:patch-1
Jul 15, 2021
Merged

fix: remove trailing commas from error message constants#505
gcf-merge-on-green[bot] merged 2 commits into
googleapis:masterfrom
rjw57:patch-1

Conversation

@rjw57

Copy link
Copy Markdown
Contributor

The _DOWNLOAD_AS_STRING_DEPRECATED constant includes a dangling comma
which makes it a tuple and not a string. This causes a TypeError as reported in #501.

Fixes#501

@rjw57
rjw57 requested review from a teamJuly 15, 2021 09:48
@product-auto-labelproduct-auto-labelBot added the api: storage Issues related to the googleapis/python-storage API. label Jul 15, 2021
@google-clagoogle-claBot added the cla: yes This human has signed the Contributor License Agreement. label Jul 15, 2021
@partheaparthea added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels Jul 15, 2021
@yoshi-kokoroyoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jul 15, 2021
@partheaparthea changed the title blob.py: remove dangling comma in _DOWNLOAD_AS_STRING_DEPRECATEDfix: TypeError in blob.download_as_string()Jul 15, 2021
@partheaparthea changed the title fix: TypeError in blob.download_as_string()fix: TypeError in blob.download_as_stringJul 15, 2021
@parthea
parthea requested a review from tseaverJuly 15, 2021 13:31
@partheaparthea changed the title fix: TypeError in blob.download_as_stringfix(Python 2.7): TypeError in blob.download_as_stringJul 15, 2021
@partheaparthea changed the title fix(Python 2.7): TypeError in blob.download_as_stringfix: TypeError in blob.download_as_stringJul 15, 2021

@tseavertseaver left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for the patch! Can you please also remove the trailing commas for _COMPOSE_IF_GENERATION_LIST_DEPRECATED and _COMPOSE_IF_GENERATION_LIST_AND_IF_SOURCE_GENERATION_ERROR?

@tseavertseaver changed the title fix: TypeError in blob.download_as_stringfix: remove trailing commas from error message constantsJul 15, 2021
The _DOWNLOAD_AS_STRING_DEPRECATED,
_COMPOSE_IF_GENERATION_LIST_DEPRECATED and
_COMPOSE_IF_GENERATION_LIST_AND_IF_SOURCE_GENERATION_ERROR constants
include a dangling comma which make them tuples and not strings. This
causes a TypeError as reported in googleapis#501.
Closesgoogleapis#501
@rjw57

Copy link
Copy Markdown
ContributorAuthor

Thanks very much for the patch! Can you please also remove the trailing commas for _COMPOSE_IF_GENERATION_LIST_DEPRECATED and _COMPOSE_IF_GENERATION_LIST_AND_IF_SOURCE_GENERATION_ERROR?

Done. I should've looked myself for any other offenders(!)

@tseavertseaver added the automerge Merge the pull request once unit tests and other checks pass. label Jul 15, 2021
@tseavertseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 15, 2021
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 15, 2021
@gcf-merge-on-green
gcf-merge-on-greenBot merged commit d4a86ce into googleapis:masterJul 15, 2021
@gcf-merge-on-greengcf-merge-on-greenBot removed the automerge Merge the pull request once unit tests and other checks pass. label Jul 15, 2021
@rjw57
rjw57 deleted the patch-1 branch July 15, 2021 16:23
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
)
The _DOWNLOAD_AS_STRING_DEPRECATED constant includes a dangling comma
which makes it a tuple and not a string. This causes a TypeError as reported in googleapis#501.
Fixesgoogleapis#501
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
)
The _DOWNLOAD_AS_STRING_DEPRECATED constant includes a dangling comma
which makes it a tuple and not a string. This causes a TypeError as reported in googleapis#501.
Fixesgoogleapis#501
@release-pleaserelease-pleaseBot mentioned this pull request Jan 12, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: storageIssues related to the googleapis/python-storage API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: expected string or bytes-like object

4 participants

@rjw57@tseaver@parthea@yoshi-kokoro