(cats)
return versions
Given an iterable of catalogs return the corresponding OS X versions
Given an iterable of catalogs return the corresponding OS X versions
Given an iterable of catalogs return the corresponding OS X versions
def versions_from_catalogs(cats):
	'''Given an iterable of catalogs return the corresponding OS X versions'''
	versions = set()

	for cat in cats:
		# take the last portion of the catalog URL path
		short_cat = cat.split('/')[-1]
		if short_cat in apple_catalog_suffixes:
			versions.add(apple_catalog_version_map[short_cat])

	return versions
def versions_from_catalogs ( cats ) : versions = set ( ) for cat in cats : # take the last portion of the catalog URL path short_cat = cat . split ( '/' ) [ - 1 ] if short_cat in apple_catalog_suffixes : versions . add ( apple_catalog_version_map [ short_cat ] ) return versions