#NEWLINE# def _get_module( self , node ) : #NEWLINE# #INDENT# include_paths = ( [ os . path . dirname ( self . filename ) ] + self . include_paths ) #NEWLINE# ( source , filename ) = headers . read_source ( node . filename , include_paths ) #NEWLINE# if ( source is None ) : #NEWLINE# #INDENT# module = Module ( filename , None ) #NEWLINE# msg = "unable to find '{}'" . format ( filename ) #NEWLINE# self . _add_warning ( msg , node ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( filename in self . _module_cache ) : #NEWLINE# #INDENT# module = self . _module_cache [ filename ] #NEWLINE# self . _update_symbol_table ( module ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ast_list = None #NEWLINE# try : #NEWLINE# #INDENT# builder = ast . builder_from_source ( source , filename , quiet = self . quiet ) #NEWLINE# ast_list = [ _f for _f in builder . generate ( ) if _f ] #NEWLINE# #UNINDENT# except tokenize . TokenError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# except ast . ParseError as error : #NEWLINE# #INDENT# if ( not self . quiet ) : #NEWLINE# #INDENT# print ( "Exception while processing '{}': {}" . format ( filename , error ) , file = sys . stderr ) #NEWLINE# #UNINDENT# #UNINDENT# module = Module ( filename , ast_list ) #NEWLINE# self . _module_cache [ filename ] = module #NEWLINE# self . _update_symbol_table ( module ) #NEWLINE# #UNINDENT# #UNINDENT# return module