##// END OF EJS Templates
fix small bug in traceback building
fperez -
Show More
@@ -1,7 +1,7 b''
1 # -*- coding: utf-8 -*-
1 # -*- coding: utf-8 -*-
2 """Release data for the IPython project.
2 """Release data for the IPython project.
3
3
4 $Id: Release.py 988 2006-01-02 21:21:47Z fperez $"""
4 $Id: Release.py 992 2006-01-04 18:35:40Z fperez $"""
5
5
6 #*****************************************************************************
6 #*****************************************************************************
7 # Copyright (C) 2001-2005 Fernando Perez <fperez@colorado.edu>
7 # Copyright (C) 2001-2005 Fernando Perez <fperez@colorado.edu>
@@ -22,9 +22,9 b" name = 'ipython'"
22 # because bdist_rpm does not accept dashes (an RPM) convention, and
22 # because bdist_rpm does not accept dashes (an RPM) convention, and
23 # bdist_deb does not accept underscores (a Debian convention).
23 # bdist_deb does not accept underscores (a Debian convention).
24
24
25 version = '0.7.0.rc7'
25 version = '0.7.0.rc8'
26
26
27 revision = '$Revision: 988 $'
27 revision = '$Revision: 992 $'
28
28
29 description = "An enhanced interactive Python shell."
29 description = "An enhanced interactive Python shell."
30
30
@@ -60,7 +60,7 b' You can implement other color schemes easily, the syntax is fairly'
60 self-explanatory. Please send back new schemes you develop to the author for
60 self-explanatory. Please send back new schemes you develop to the author for
61 possible inclusion in future releases.
61 possible inclusion in future releases.
62
62
63 $Id: ultraTB.py 988 2006-01-02 21:21:47Z fperez $"""
63 $Id: ultraTB.py 992 2006-01-04 18:35:40Z fperez $"""
64
64
65 #*****************************************************************************
65 #*****************************************************************************
66 # Copyright (C) 2001 Nathaniel Gray <n8gray@caltech.edu>
66 # Copyright (C) 2001 Nathaniel Gray <n8gray@caltech.edu>
@@ -121,9 +121,12 b' def _fixed_getinnerframes(etb, context=1,tb_offset=0):'
121 # otherwise produce 5 blank lines printed out (there is no file at the
121 # otherwise produce 5 blank lines printed out (there is no file at the
122 # console)
122 # console)
123 rec_check = records[tb_offset:]
123 rec_check = records[tb_offset:]
124 rname = rec_check[0][1]
124 try:
125 if rname == '<ipython console>' or rname.endswith('<string>'):
125 rname = rec_check[0][1]
126 return rec_check
126 if rname == '<ipython console>' or rname.endswith('<string>'):
127 return rec_check
128 except IndexError:
129 pass
127
130
128 aux = traceback.extract_tb(etb)
131 aux = traceback.extract_tb(etb)
129 assert len(records) == len(aux)
132 assert len(records) == len(aux)
General Comments 0
You need to be logged in to leave comments. Login now