#NEWLINE# def _cancel_upload( self , upload_id , filename ) : #NEWLINE# #INDENT# ( bucket , key ) = find_bucket_key ( filename . dest ) #NEWLINE# params = { #NEWLINE# #INDENT# 'Bucket' : bucket , #NEWLINE# 'Key' : key , #NEWLINE# 'UploadId' : upload_id , #NEWLINE# #UNINDENT# } #NEWLINE# LOGGER . debug ( 'Aborting multipart upload for: %s' , key ) #NEWLINE# filename . client . abort_multipart_upload ( ** params )