Ticket #1877: trac_1877_review.patch

File trac_1877_review.patch, 1.3 kB (added by anakha, 4 months ago)
  • a/sage/plot/plot3d/parametric_plot3d.py

    old new  
    374374        G = parametric_plot3d_curve(f, urange, plot_points, **kwds) 
    375375    else: 
    376376        if urange[0] is vrange[0]: 
    377             raise ValueError, "Plot variables should be distinct, but both are %s."%urange[0]         
     377            raise ValueError, "plot variables should be distinct, but both are %s."%(urange[0],) 
    378378 
    379379        if plot_points == "automatic": 
    380380            plot_points = [40,40] 
  • a/sage/plot/plot3d/plot3d.py

    old new  
    149149        u = urange[0] 
    150150        v = vrange[0] 
    151151        if u is v: 
    152             raise ValueError, "Plot variables should be distinct, but both are %s."%u    
     152            raise ValueError, "plot variables should be distinct, but both are %s."%(u,)    
    153153         
    154154        w = (u, v, f) 
    155155