#NEWLINE# def _print_FracElement( self , frac ) : #NEWLINE# #INDENT# if ( frac . denom == 1 ) : #NEWLINE# #INDENT# return self . _print ( frac . numer ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# numer = self . parenthesize ( frac . numer , PRECEDENCE [ 'Mul' ] , strict = True ) #NEWLINE# denom = self . parenthesize ( frac . denom , PRECEDENCE [ 'Atom' ] , strict = True ) #NEWLINE# return ( ( numer + '/' ) + denom )