#NEWLINE# def exit_counts( self ) : #NEWLINE# #INDENT# 'Get a mapping from line numbers to count of exits from that line.\n\n        Excluded lines are excluded.\n\n        ' #NEWLINE# excluded_lines = self . first_lines ( self . excluded ) #NEWLINE# exit_counts = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( l1 , l2 ) in self . arcs ( ) : #NEWLINE# #INDENT# if ( l1 < 0 ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( l1 in excluded_lines ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( l2 in excluded_lines ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( l1 not in exit_counts ) : #NEWLINE# #INDENT# exit_counts [ l1 ] = 0 #NEWLINE# #UNINDENT# exit_counts [ l1 ] += 1 #NEWLINE# #UNINDENT# for l in self . classdefs : #NEWLINE# #INDENT# if ( l in exit_counts ) : #NEWLINE# #INDENT# exit_counts [ l ] -= 1 #NEWLINE# #UNINDENT# #UNINDENT# return exit_counts