Show More
@@ -487,10 +487,14 b' class ListTB(TBTools):' | |||||
487 | else: |
|
487 | else: | |
488 | list.append('%s\n' % str(stype)) |
|
488 | list.append('%s\n' % str(stype)) | |
489 |
|
489 | |||
490 | # vds:>> |
|
490 | # This is being commented out for now as the __IPYTHON__ variable | |
491 | if have_filedata: |
|
491 | # referenced here is not resolved and causes massive test failures | |
492 | __IPYTHON__.hooks.synchronize_with_editor(filename, lineno, 0) |
|
492 | # and errors. B. Granger, 04/2009. | |
493 | # vds:<< |
|
493 | # See https://bugs.launchpad.net/bugs/362137 | |
|
494 | # # vds:>> | |||
|
495 | # if have_filedata: | |||
|
496 | # __IPYTHON__.hooks.synchronize_with_editor(filename, lineno, 0) | |||
|
497 | # # vds:<< | |||
494 |
|
498 | |||
495 | return list |
|
499 | return list | |
496 |
|
500 | |||
@@ -804,13 +808,17 b' class VerboseTB(TBTools):' | |||||
804 | value = text_repr(getattr(evalue, name)) |
|
808 | value = text_repr(getattr(evalue, name)) | |
805 | exception.append('\n%s%s = %s' % (indent, name, value)) |
|
809 | exception.append('\n%s%s = %s' % (indent, name, value)) | |
806 |
|
810 | |||
807 | # vds: >> |
|
811 | # This is being commented out for now as the __IPYTHON__ variable | |
808 | if records: |
|
812 | # referenced here is not resolved and causes massive test failures | |
809 | filepath, lnum = records[-1][1:3] |
|
813 | # and errors. B. Granger, 04/2009. | |
810 | #print "file:", str(file), "linenb", str(lnum) # dbg |
|
814 | # See https://bugs.launchpad.net/bugs/362137 | |
811 | filepath = os.path.abspath(filepath) |
|
815 | # # vds: >> | |
812 | __IPYTHON__.hooks.synchronize_with_editor(filepath, lnum, 0) |
|
816 | # if records: | |
813 | # vds: << |
|
817 | # filepath, lnum = records[-1][1:3] | |
|
818 | # #print "file:", str(file), "linenb", str(lnum) # dbg | |||
|
819 | # filepath = os.path.abspath(filepath) | |||
|
820 | # __IPYTHON__.hooks.synchronize_with_editor(filepath, lnum, 0) | |||
|
821 | # # vds: << | |||
814 |
|
822 | |||
815 | # return all our info assembled as a single string |
|
823 | # return all our info assembled as a single string | |
816 | return '%s\n\n%s\n%s' % (head,'\n'.join(frames),''.join(exception[0]) ) |
|
824 | 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