def parse_list_buckets(data):
    """
    Parser for list buckets response.

    :param data: Response data for list buckets.
    :return: List of :class:`Bucket <Bucket>`.
    """
    root = S3Element.fromstring('ListBucketsResult', data)

    return [
        Bucket(bucket.get_child_text('Name'),
               bucket.get_localized_time_elem('CreationDate'))
        for buckets in root.findall('Buckets')
        for bucket in buckets.findall('Bucket')
    ]
def parse_list_buckets ( data ) : root = S3Element . fromstring ( 'ListBucketsResult' , data ) return [ Bucket ( bucket . get_child_text ( 'Name' ) , bucket . get_localized_time_elem ( 'CreationDate' ) ) for buckets in root . findall ( 'Buckets' ) for bucket in buckets . findall ( 'Bucket' ) ]
Parser for list buckets response.

    :param data: Response data for list buckets.
    :return: List of :class:`Bucket <Bucket>`.