#NEWLINE# def setup_message_classes( nlsock ) : #NEWLINE# #INDENT# for msg_class in __to_lookup_on_init : #NEWLINE# #INDENT# if ( not isinstance ( msg_class . family , int ) ) : #NEWLINE# #INDENT# msg_class . family = nlsock . resolve_family ( msg_class . family ) #NEWLINE# __cmd_unpack_map [ msg_class . family ] = msg_class #NEWLINE# #UNINDENT# #UNINDENT# __to_lookup_on_init . clear ( ) #NEWLINE# for ( family_id , msg_class ) in __cmd_unpack_map . iteritems ( ) : #NEWLINE# #INDENT# for mod in getattr ( msg_class , 'required_modules' , [ ] ) : #NEWLINE# #INDENT# subprocess . check_call ( [ 'modprobe' , family_id ] )