labpack/storage/aws/s3.py
def list_buckets(self):

        '''
            a method to retrieve a list of buckets on s3

        :return: list of buckets
        '''

        title = '%s.list_buckets' % self.__class__.__name__
        
        bucket_list = []
        
    # send request to s3
        try:
            response = self.connection.list_buckets()
        except:
            raise AWSConnectionError(title)

    # create list from response
        for bucket in response['Buckets']:
            bucket_list.append(bucket['Name'])

        self.bucket_list = bucket_list
        
        return self.bucket_list

            a method to retrieve a list of buckets on s3

        :return: list of buckets
        
a method to retrieve a list of buckets on s3
a method to retrieve a list of buckets on s3
def list_buckets(self):
        title = '%s.list_buckets' % self.__class__.__name__
        bucket_list = []
        try:
            response = self.connection.list_buckets()
        except:
            raise AWSConnectionError(title)
        for bucket in response['Buckets']:
            bucket_list.append(bucket['Name'])
        self.bucket_list = bucket_list
        return self.bucket_list
def list_buckets ( self ) : title = '%s.list_buckets' % self . __class__ . __name__ bucket_list = [ ] try : response = self . connection . list_buckets ( ) except : raise AWSConnectionError ( title ) for bucket in response [ 'Buckets' ] : bucket_list . append ( bucket [ 'Name' ] ) self . bucket_list = bucket_list return self . bucket_list
a method to retrieve a list of buckets on s3
a method to retrieve a list of buckets on s3
'''
            a method to retrieve a list of buckets on s3

        :return: list of buckets
        ''' # send request to s3 # create list from response
list of buckets
list of buckets
self