Skip to content

Commit b77ed78

Browse files
committed
Fix ValueError message and remove set() usage.
1 parent a431df1 commit b77ed78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vision/google/cloud/vision/image.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ class Image(object):
4141
"""
4242

4343
def __init__(self, client, content=None, filename=None, source_uri=None):
44-
sources = set(source for source in (content, filename, source_uri)
45-
if source is not None)
44+
sources = [source for source in (content, filename, source_uri)
45+
if source is not None]
4646
if len(sources) != 1:
4747
raise ValueError(
48-
'Specify exactly one of \'content\', \'filename\', or'
49-
'\'source_uri\'.')
48+
'Specify exactly one of "content", "filename", or '
49+
'"source_uri".')
5050

5151
self.client = client
5252

0 commit comments

Comments
 (0)