##// END OF EJS Templates
Small fixes after Brian's review....
Fernando Perez -
Show More
@@ -35,13 +35,6 b' def test_rehashx():'
35 yield (nt.assert_true, len(scoms) > 10)
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 def doctest_hist_f():
38 def doctest_hist_f():
46 """Test %hist -f with temporary filename.
39 """Test %hist -f with temporary filename.
47
40
@@ -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,7 +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 scheme = __IPYTHON__.rc.colors
271 scheme = ipapi.get().IP.rc.colors
272 except:
272 except:
273 scheme = DEFAULT_SCHEME
273 scheme = DEFAULT_SCHEME
274 _line_format = _parser.format2
274 _line_format = _parser.format2
@@ -489,7 +489,7 b' class ListTB(TBTools):'
489
489
490 # vds:>>
490 # vds:>>
491 if have_filedata:
491 if have_filedata:
492 __IPYTHON__.hooks.synchronize_with_editor(filename, lineno, 0)
492 ipapi.get().IP.hooks.synchronize_with_editor(filename, lineno, 0)
493 # vds:<<
493 # vds:<<
494
494
495 return list
495 return list
@@ -809,7 +809,7 b' class VerboseTB(TBTools):'
809 filepath, lnum = records[-1][1:3]
809 filepath, lnum = records[-1][1:3]
810 #print "file:", str(file), "linenb", str(lnum) # dbg
810 #print "file:", str(file), "linenb", str(lnum) # dbg
811 filepath = os.path.abspath(filepath)
811 filepath = os.path.abspath(filepath)
812 __IPYTHON__.hooks.synchronize_with_editor(filepath, lnum, 0)
812 ipapi.get().IP.hooks.synchronize_with_editor(filepath, lnum, 0)
813 # vds: <<
813 # vds: <<
814
814
815 # return all our info assembled as a single string
815 # return all our info assembled as a single string
General Comments 0
You need to be logged in to leave comments. Login now