Lines Matching full:single
33 """Raised when we want a single item but got multiple."""
68 def gs_ls(pattern, archive_url, single): argument
73 @param single: if true, expect a single match and return it.
85 if not single or (single and len(uri_list) == 1):
97 def find_payload_uri(archive_url, delta=False, single=False): argument
102 @param single: if true, expect a single match and return it, otherwise
105 @return A (possibly empty) list of URIs, or a single (possibly None) URI if
106 |single| is True.
116 payload_uri_list = gs_ls(pattern, archive_url, single)
118 return None if single else []
120 return payload_uri_list[0] if single else payload_uri_list
137 image_archive = gs_ls('image.zip', archive_url, single=True)