#NEWLINE# def read( self , r ) : #NEWLINE# #INDENT# size = r . get_byte ( ) #NEWLINE# if ( size == 0 ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( size not in self . subtypes ) : #NEWLINE# #INDENT# raise r . session . bad_stream ( ( 'Invalid %s size' % self . type ) , size ) #NEWLINE# #UNINDENT# return self . subtypes [ size ] . read ( r )