#NEWLINE# def hasFunction( self , name ) : #NEWLINE# #INDENT# '\n            returns true if the function with the name _name_ is found in the code\n        ' #NEWLINE# content = self . getContent ( ) #NEWLINE# regExp = ( regExp . functionRegExp % name ) #NEWLINE# return ( re . search ( regExp , content ) is not None )