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

Commit 3665ef5

Browse files
committed
fix(blob.py): remove dangling commas from message strings
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 #501. Closes #501
1 parent ac79079 commit 3665ef5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google/cloud/storage/blob.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
_COMPOSE_IF_GENERATION_LIST_DEPRECATED = (
120120
"'if_generation_match: type list' is deprecated and supported for "
121121
"backwards-compatability reasons only. Use 'if_source_generation_match' "
122-
"instead' to match source objects' generations.",
122+
"instead' to match source objects' generations."
123123
)
124124
_COMPOSE_IF_GENERATION_LIST_AND_IF_SOURCE_GENERATION_ERROR = (
125125
"Use 'if_generation_match' to match the generation of the destination "
@@ -130,14 +130,14 @@
130130
"'if_metageneration_match: type list' is deprecated and supported for "
131131
"backwards-compatability reasons only. Note that the metageneration to "
132132
"be matched is that of the destination blob. Please pass in a single "
133-
"value (type long).",
133+
"value (type long)."
134134
)
135135
_COMPOSE_IF_SOURCE_GENERATION_MISMATCH_ERROR = (
136136
"'if_source_generation_match' length must be the same as 'sources' length"
137137
)
138138
_DOWNLOAD_AS_STRING_DEPRECATED = (
139139
"Blob.download_as_string() is deprecated and will be removed in future. "
140-
"Use Blob.download_as_bytes() instead.",
140+
"Use Blob.download_as_bytes() instead."
141141
)
142142

143143

0 commit comments

Comments
 (0)