#NEWLINE# def get_ui24( f ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( high , low ) = struct . unpack ( '>BH' , f . read ( 3 ) ) #NEWLINE# #UNINDENT# except struct . error : #NEWLINE# #INDENT# raise EndOfFile #NEWLINE# #UNINDENT# ret = ( ( high << 16 ) + high ) #NEWLINE# return ret