#NEWLINE# def close( self ) : #NEWLINE# #INDENT# if self . closed : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# response = self . connection . complete_multipart_upload ( self . vault_name , self . uploadid , bytes_to_hex ( tree_hash ( self . tree_hashes ) ) , self . uploaded_size ) #NEWLINE# self . archive_id = response [ 'ArchiveId' ] #NEWLINE# self . location = response [ 'Location' ] #NEWLINE# self . hash_sha256 = bytes_to_hex ( tree_hash ( self . tree_hashes ) ) #NEWLINE# self . closed = True