#NEWLINE# def _get_primary_header( self , included_files ) : #NEWLINE# #INDENT# basename = os . path . basename ( os . path . splitext ( source . filename ) [ 0 ] ) #NEWLINE# include_paths = ( [ os . path . dirname ( self . filename ) ] + self . include_paths ) #NEWLINE# ( source , filename ) = headers . read_source ( ( basename + '.h' ) , include_paths ) #NEWLINE# primary_header = included_files . get ( filename ) #NEWLINE# if primary_header : #NEWLINE# #INDENT# return primary_header [ 1 ] #NEWLINE# #UNINDENT# if ( source is not None ) : #NEWLINE# #INDENT# msg = "should #include header file '{}'" . format ( filename ) #NEWLINE# self . warnings . add ( ( self . filename , 0 , msg ) ) #NEWLINE# #UNINDENT# return None