#NEWLINE# def parenthesize( self , item , level , strict = False ) : #NEWLINE# #INDENT# if ( ( precedence ( item ) < level ) or ( ( not strict ) and ( precedence ( item ) <= level ) ) ) : #NEWLINE# #INDENT# return ( '(%s)' % self . _print ( item ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _print ( item )