#NEWLINE# def _deduplicate_directives( self , vh_path , directives ) : #NEWLINE# #INDENT# for directive in directives : #NEWLINE# #INDENT# while ( len ( self . parser . find_dir ( directive , None , vh_path , False ) ) > 1 ) : #NEWLINE# #INDENT# directive_path = self . parser . find_dir ( directive , None , vh_path , False ) #NEWLINE# self . aug . remove ( re . sub ( '/\\w*$' , '' , directive_path [ 0 ] ) )