##// END OF EJS Templates
Fernando Perez -
Show More
@@ -90,7 +90,7 b' from inspect import getsourcefile, getfile, getmodule,\\'
90
90
91 # IPython's own modules
91 # IPython's own modules
92 # Modified pdb which doesn't damage IPython's readline handling
92 # Modified pdb which doesn't damage IPython's readline handling
93 from IPython import Debugger, PyColorize
93 from IPython import Debugger, PyColorize, ipapi
94 from IPython.ipstruct import Struct
94 from IPython.ipstruct import Struct
95 from IPython.excolors import exception_colors
95 from IPython.excolors import exception_colors
96 from IPython.genutils import Term,uniq_stable,error,info
96 from IPython.genutils import Term,uniq_stable,error,info
@@ -268,9 +268,7 b' def _formatTracebackLines(lnum, index, lines, Colors, lvals=None,scheme=None):'
268 # This lets us get fully syntax-highlighted tracebacks.
268 # This lets us get fully syntax-highlighted tracebacks.
269 if scheme is None:
269 if scheme is None:
270 try:
270 try:
271 # Again, reference to a global __IPYTHON__ that doesn't exist.
271 scheme = ipapi.get().IP.rc.colors
272 # XXX
273 scheme = __IPYTHON__.rc.colors
274 except:
272 except:
275 scheme = DEFAULT_SCHEME
273 scheme = DEFAULT_SCHEME
276 _line_format = _parser.format2
274 _line_format = _parser.format2
@@ -489,14 +487,10 b' class ListTB(TBTools):'
489 else:
487 else:
490 list.append('%s\n' % str(stype))
488 list.append('%s\n' % str(stype))
491
489
492 # This is being commented out for now as the __IPYTHON__ variable
490 # vds:>>
493 # referenced here is not resolved and causes massive test failures
491 if have_filedata:
494 # and errors. B. Granger, 04/2009. XXX
492 ipapi.get().IP.hooks.synchronize_with_editor(filename, lineno, 0)
495 # See https://bugs.launchpad.net/bugs/362137
493 # vds:<<
496 # # vds:>>
497 # if have_filedata:
498 # __IPYTHON__.hooks.synchronize_with_editor(filename, lineno, 0)
499 # # vds:<<
500
494
501 return list
495 return list
502
496
@@ -810,17 +804,13 b' class VerboseTB(TBTools):'
810 value = text_repr(getattr(evalue, name))
804 value = text_repr(getattr(evalue, name))
811 exception.append('\n%s%s = %s' % (indent, name, value))
805 exception.append('\n%s%s = %s' % (indent, name, value))
812
806
813 # This is being commented out for now as the __IPYTHON__ variable
807 # vds: >>
814 # referenced here is not resolved and causes massive test failures
808 if records:
815 # and errors. B. Granger, 04/2009. XXX
809 filepath, lnum = records[-1][1:3]
816 # See https://bugs.launchpad.net/bugs/362137
810 #print "file:", str(file), "linenb", str(lnum) # dbg
817 # # vds: >>
811 filepath = os.path.abspath(filepath)
818 # if records:
812 ipapi.get().IP.hooks.synchronize_with_editor(filepath, lnum, 0)
819 # filepath, lnum = records[-1][1:3]
813 # vds: <<
820 # #print "file:", str(file), "linenb", str(lnum) # dbg
821 # filepath = os.path.abspath(filepath)
822 # __IPYTHON__.hooks.synchronize_with_editor(filepath, lnum, 0)
823 # # vds: <<
824
814
825 # return all our info assembled as a single string
815 # return all our info assembled as a single string
826 return '%s\n\n%s\n%s' % (head,'\n'.join(frames),''.join(exception[0]) )
816 return '%s\n\n%s\n%s' % (head,'\n'.join(frames),''.join(exception[0]) )
General Comments 0
You need to be logged in to leave comments. Login now