#NEWLINE# def _declares_service( self , source ) : #NEWLINE# #INDENT# with open ( source ) as thrift : #NEWLINE# #INDENT# return any ( ( line for line in thrift if self . SERVICE_PARSER . search ( line ) ) )