#NEWLINE# def _CheckManpage( self , script , mantext , commands ) : #NEWLINE# #INDENT# missing = [ ] #NEWLINE# for cmd in commands : #NEWLINE# #INDENT# pattern = ( '^(\\| )?\\*\\*%s\\*\\*' % re . escape ( cmd ) ) #NEWLINE# if ( not re . findall ( pattern , mantext , ( re . DOTALL | re . MULTILINE ) ) ) : #NEWLINE# #INDENT# missing . append ( cmd ) #NEWLINE# #UNINDENT# #UNINDENT# self . failIf ( missing , msg = ( "Manpage for '%s' missing documentation for %s" % ( script , utils . CommaJoin ( missing ) ) ) )