#NEWLINE# def read( self , file ) : #NEWLINE# #INDENT# value_bytes = b'' #NEWLINE# values = [ ] #NEWLINE# with self . for_instance ( self . instance ) : #NEWLINE# #INDENT# if ( self . size == ( - 1 ) ) : #NEWLINE# #INDENT# while True : #NEWLINE# #INDENT# ( bytes , value ) = self . field . read_value ( file ) #NEWLINE# if bytes : #NEWLINE# #INDENT# values . append ( value ) #NEWLINE# value_bytes += bytes #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for i in range ( self . size ) : #NEWLINE# #INDENT# ( bytes , value ) = self . field . read_value ( file ) #NEWLINE# value_bytes += bytes #NEWLINE# values . append ( value ) #NEWLINE# #UNINDENT# #UNINDENT# raise fields . FullyDecoded ( value_bytes , values )