4545
4646# IPython's own modules
4747#import IPython
48- from IPython import ultraTB
48+ from IPython . core import ultratb
4949from IPython .utils import PyColorize
5050from IPython .core import debugger , oinspect
5151from IPython .Extensions import pickleshare
5757from IPython .utils .ipstruct import Struct
5858from IPython .lib .backgroundjobs import BackgroundJobManager
5959from IPython .utils .genutils import *
60- from IPython .strdispatch import StrDispatch
60+ from IPython .utils . strdispatch import StrDispatch
6161from IPython .core import ipapi
6262import IPython .core .history
6363import IPython .core .prefilter as prefilter
@@ -340,16 +340,16 @@ class InputList(list):
340340 def __getslice__ (self ,i ,j ):
341341 return '' .join (list .__getslice__ (self ,i ,j ))
342342
343- class SyntaxTB (ultraTB .ListTB ):
343+ class SyntaxTB (ultratb .ListTB ):
344344 """Extension which holds some state: the last exception value"""
345345
346346 def __init__ (self ,color_scheme = 'NoColor' ):
347- ultraTB .ListTB .__init__ (self ,color_scheme )
347+ ultratb .ListTB .__init__ (self ,color_scheme )
348348 self .last_syntax_error = None
349349
350350 def __call__ (self , etype , value , elist ):
351351 self .last_syntax_error = value
352- ultraTB .ListTB .__call__ (self ,etype ,value ,elist )
352+ ultratb .ListTB .__call__ (self ,etype ,value ,elist )
353353
354354 def clear_err_state (self ):
355355 """Return the current error state and clear it"""
@@ -714,7 +714,7 @@ def __init__(self,name,usage=None,rc=Struct(opts=None,args=None),
714714 # The interactive one is initialized with an offset, meaning we always
715715 # want to remove the topmost item in the traceback, which is our own
716716 # internal code. Valid modes: ['Plain','Context','Verbose']
717- self .InteractiveTB = ultraTB .AutoFormattedTB (mode = 'Plain' ,
717+ self .InteractiveTB = ultratb .AutoFormattedTB (mode = 'Plain' ,
718718 color_scheme = 'NoColor' ,
719719 tb_offset = 1 )
720720
@@ -725,7 +725,7 @@ def __init__(self,name,usage=None,rc=Struct(opts=None,args=None),
725725 # thread (such as in GUI code) propagate directly to sys.excepthook,
726726 # and there's no point in printing crash dumps for every user exception.
727727 if self .isthreaded :
728- ipCrashHandler = ultraTB .FormattedTB ()
728+ ipCrashHandler = ultratb .FormattedTB ()
729729 else :
730730 from IPython .core import crashhandler
731731 ipCrashHandler = crashhandler .IPythonCrashHandler (self )
0 commit comments