#NEWLINE# def set_import( self , filename ) : #NEWLINE# #INDENT# self . imports . append ( filename ) #NEWLINE# proto = Protocol . from_file ( filename ) #NEWLINE# self . imported_protocols [ filename ] = proto #NEWLINE# for name in proto . messages_order : #NEWLINE# #INDENT# self . set_message ( proto . messages [ name ] ) #NEWLINE# #UNINDENT# for ( name , enum ) in self . enums : #NEWLINE# #INDENT# self . set_enum ( enum )