Ticket #7981: trac_7981-reviewer.patch

File trac_7981-reviewer.patch, 904 bytes (added by Karl-Dieter Crisman, 12 years ago)

reviewer patch

  • sage/plot/animate.py

    # HG changeset patch
    # User Karl-Dieter Crisman <kcrisman@gmail.com>
    # Date 1295289556 18000
    # Node ID 6dafdfdea64f1c765cb79ce45f831de6fecfd439
    # Parent  6b2a299328b22c699d7f54f08edf6b79781d55ea
    Trac 7981 - reviewer patch fixes parenthesis issue in doctest and ensures optional
    
    diff -r 6b2a299328b2 -r 6dafdfdea64f sage/plot/animate.py
    a b  
    8383       
    8484    We check that Trac #7981 is fixed::
    8585   
    86         sage: animate([plot(sin(x + float(k), (0, 2*pi), ymin=-5, ymax=5))
    87         ...            for k in srange(0,2*pi,0.3)]).show() # optional
     86        sage: a = animate([plot(sin(x + float(k)), (0, 2*pi), ymin=-5, ymax=5)
     87        ...            for k in srange(0,2*pi,0.3)])
     88        sage: a.show() # optional
    8889    """
    8990    def __init__(self, v, **kwds):
    9091        r"""