def url_to_s3_info(url):
 parsed_url = parse_url(url)
 assert (parsed_url.scheme == u's3'), (u'You can only use s3: urls (not %r)' % url)
 (bucket, key) = (parsed_url.host, parsed_url.path)
 return (bucket, key)

def url_to_s3_info ( url ) : parsed_url = parse_url ( url ) assert ( parsed_url . scheme == u's3' ) , ( u'You can only use s3: urls (not %r)' % url ) ( bucket , key ) = ( parsed_url . host , parsed_url . path ) return ( bucket , key )
convert an s3 url to a tuple of bucket and key .