#NEWLINE# def read( self , offset , length ) : #NEWLINE# #INDENT# self . logger . debug ( '{0} reading {1} bytes from [{2}]' . format ( length . addr , length , hex ( offset ) ) ) #NEWLINE# self . seek_lock . acquire ( ) #NEWLINE# self . imagefd . seek ( offset ) #NEWLINE# data = self . imagefd . read ( length ) #NEWLINE# self . seek_lock . release ( ) #NEWLINE# return data