Show More
@@ -35,13 +35,6 b' def test_rehashx():' | |||
|
35 | 35 | yield (nt.assert_true, len(scoms) > 10) |
|
36 | 36 | |
|
37 | 37 | |
|
38 | ## def doctest_lsmagic(): | |
|
39 | ## """ | |
|
40 | ## In [15]: %lsmagic | |
|
41 | ## Available magic functions: | |
|
42 | ## %Exit | |
|
43 | ## """ | |
|
44 | ||
|
45 | 38 | def doctest_hist_f(): |
|
46 | 39 | """Test %hist -f with temporary filename. |
|
47 | 40 |
@@ -90,7 +90,7 b' from inspect import getsourcefile, getfile, getmodule,\\' | |||
|
90 | 90 | |
|
91 | 91 | # IPython's own modules |
|
92 | 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 | 94 | from IPython.ipstruct import Struct |
|
95 | 95 | from IPython.excolors import exception_colors |
|
96 | 96 | from IPython.genutils import Term,uniq_stable,error,info |
@@ -268,7 +268,7 b' def _formatTracebackLines(lnum, index, lines, Colors, lvals=None,scheme=None):' | |||
|
268 | 268 | # This lets us get fully syntax-highlighted tracebacks. |
|
269 | 269 | if scheme is None: |
|
270 | 270 | try: |
|
271 |
scheme = |
|
|
271 | scheme = ipapi.get().IP.rc.colors | |
|
272 | 272 | except: |
|
273 | 273 | scheme = DEFAULT_SCHEME |
|
274 | 274 | _line_format = _parser.format2 |
@@ -489,7 +489,7 b' class ListTB(TBTools):' | |||
|
489 | 489 | |
|
490 | 490 | # vds:>> |
|
491 | 491 | if have_filedata: |
|
492 |
|
|
|
492 | ipapi.get().IP.hooks.synchronize_with_editor(filename, lineno, 0) | |
|
493 | 493 | # vds:<< |
|
494 | 494 | |
|
495 | 495 | return list |
@@ -809,7 +809,7 b' class VerboseTB(TBTools):' | |||
|
809 | 809 | filepath, lnum = records[-1][1:3] |
|
810 | 810 | #print "file:", str(file), "linenb", str(lnum) # dbg |
|
811 | 811 | filepath = os.path.abspath(filepath) |
|
812 |
|
|
|
812 | ipapi.get().IP.hooks.synchronize_with_editor(filepath, lnum, 0) | |
|
813 | 813 | # vds: << |
|
814 | 814 | |
|
815 | 815 | # return all our info assembled as a single string |
General Comments 0
You need to be logged in to leave comments.
Login now