#NEWLINE# def _abort_all_transfers( self , exception ) : #NEWLINE# #INDENT# '\n        Abort any ongoing transfers and clear all buffers\n        ' #NEWLINE# pending_reads = len ( self . _commands_to_read ) #NEWLINE# for transfer in self . _transfer_list : #NEWLINE# #INDENT# transfer . add_error ( self ) #NEWLINE# #UNINDENT# self . _init_deferred_buffers ( ) #NEWLINE# if isinstance ( exception , DAPAccessIntf . TransferError ) : #NEWLINE# #INDENT# for _ in range ( pending_reads ) : #NEWLINE# #INDENT# self . _interface . read ( )