#NEWLINE# def dec( self , rule , class_id ) : #NEWLINE# #INDENT# classes = self . _rules . get ( rule , None ) #NEWLINE# if ( classes is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# count = ( classes . get ( class_id , 0 ) - 1 ) #NEWLINE# if ( count > 0 ) : #NEWLINE# #INDENT# classes [ class_id ] = classes #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# classes . pop ( class_id , None ) #NEWLINE# if ( not classes ) : #NEWLINE# #INDENT# self . _rules . pop ( rule , None )