Ticket #3685: trac_3685_remove_tab.patch

File trac_3685_remove_tab.patch, 1.9 KB (added by chapoton, 7 years ago)
  • sage/all.py

    # HG changeset patch
    # User Frederic Chapoton <chapoton at math.univ-lyon1.fr>
    # Date 1377101199 -7200
    # Node ID 01e7d04006293961ced20303ec1e507efb7beac1
    # Parent  48d744e0a7e1048325d07ec6868bcb4190b3e529
    trac 3685 remove TAB and found the offending import place
    
    diff --git a/sage/all.py b/sage/all.py
    a b all.py -- much of sage is imported into  
    44   
    55TESTS:
    66   
    7     This is to test #10570. If the number of stackframes at startup
     7    This is to test :trac:`10570`. If the number of stackframes at startup
    88    changes due to a patch you made, please check that this was an
    99    intended effect of your patch.
    1010
    TESTS: 
    3838
    3939    Check that IPython is *not* imported by default when sage.all is imported::
    4040
    41         sage: os.system('sage -startuptime|grep IPython') 
    42         256
     41        sage: os.system('sage -startuptime|grep IPython')
     42        256
    4343"""
    4444
    4545###############################################################################
  • sage/misc/all.py

    diff --git a/sage/misc/all.py b/sage/misc/all.py
    a b lazy_import('sage.misc.attached_files',  
    7474        'attach', 'detach', 'attached_files', 'load_attach_path',
    7575        'reset_load_attach_path', 'load_attach_mode'])
    7676
    77 from sage.misc.lazy_import import lazy_import
    7877lazy_import("sage.misc.interpreter", ["preparser"])
    7978
    8079from sage_eval import sage_eval, sageobj
  • sage/misc/displayhook.py

    diff --git a/sage/misc/displayhook.py b/sage/misc/displayhook.py
    a b class DisplayHook(object): 
    260260            __builtin__._ = obj
    261261        else:
    262262            self.oldhook(obj)
    263            
    264 from IPython.core.formatters import PlainTextFormatter
     263
     264from lazy_import import lazy_import
     265lazy_import("IPython.core.formatters", ["PlainTextFormatter"])
     266
    265267from ascii_art import ascii_art
    266268class SagePlainTextFormatter(PlainTextFormatter):
    267269    r"""