#NEWLINE# def handle_found( device , data ) : #NEWLINE# #INDENT# TABLE = { #NEWLINE# #INDENT# '\\> (?P<filename>.+)\\((?P<line>[0-9]+)\\)(?P<args>.+)' : ( 'LINE' , ( 'filename' , 'line' , 'args' ) ) , #NEWLINE# '\\(Pdb\\) Deleted breakpoint (?P<index>[0-9]+)' : ( 'DELETED_BREAKPOINT' , ( 'index' , ) ) , #NEWLINE# '\\(Pdb\\) Breakpoint (?P<index>[0-9]+) at (?P<filename>.+)\\:(?P<line>[0-9]+)' : ( 'BREAKPOINT' , ( 'index' , 'filename' , 'line' ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# for ( regex , ( event , groups ) ) in TABLE . iteritems ( ) : #NEWLINE# #INDENT# sch = search ( regex , data ) #NEWLINE# if ( not regex ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# spawn ( device , event , * sch . group ( * groups ) ) #NEWLINE# break