#16488: upgrade to IPython 2.1
----------------------------------+----------------------------
   Reporter:  was                 |            Owner:
       Type:  enhancement         |           Status:  new
   Priority:  minor               |        Milestone:  sage-6.3
  Component:  packages: standard  |         Keywords:
  Merged in:                      |          Authors:
  Reviewers:                      |  Report Upstream:  N/A
Work issues:                      |           Branch:
     Commit:                      |     Dependencies:
   Stopgaps:                      |
----------------------------------+----------------------------
 Whoever does this -- this is the patch you'll need to get around the
 deprecation warning (which is the ONLY doctest failure):

 {{{
 diff --git a/src/sage/repl/ipython_extension.py
 b/src/sage/repl/ipython_extension.py
 index 3382aee..63864ff 100644
 --- a/src/sage/repl/ipython_extension.py
 +++ b/src/sage/repl/ipython_extension.py
 @@ -332,10 +332,11 @@ class SageCustomizations(object):
          """
          Set the exit hook to cleanly exit Sage.
          """
 -        def quit(shell):
 +        def quit():
              import sage.all
              sage.all.quit_sage(self.shell.verbose_quit)
 -        self.shell.set_hook('shutdown_hook', quit)
 +        import atexit
 +        atexit.register(quit)

      def init_environment(self):
          """
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/16488>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to