#NEWLINE# def __iter__( self ) : #NEWLINE# #INDENT# prefix = self . layout . basebackup_tar_partition_directory ( self . backup_info ) #NEWLINE# bucket = get_bucket ( self . s3_conn , self . layout . store_name ( ) ) #NEWLINE# for key in bucket . list ( prefix = prefix ) : #NEWLINE# #INDENT# url = 's3://{bucket}/{name}' . format ( bucket = key . bucket . name , name = key . name ) #NEWLINE# key_last_part = key . name . rsplit ( '/' , 1 ) [ ( - 1 ) ] #NEWLINE# match = re . match ( storage . VOLUME_REGEXP , key_last_part ) #NEWLINE# if ( match is None ) : #NEWLINE# #INDENT# logger . warning ( msg = 'unexpected key found in tar volume directory' , detail = 'The unexpected key is stored at "{0}".' . format ( url ) , hint = generic_weird_key_hint_message ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield key_last_part )