[Python-checkins] CVS: python/dist/src/Lib traceback.py,1.23,1.24
Jeremy Hylton
jhylton@users.sourceforge.net
Wed, 21 Mar 2001 12:29:21 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv9930/Lib
Modified Files:
traceback.py
Log Message:
Do not print caret when offset is None.
Index: traceback.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/traceback.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** traceback.py 2001/03/21 19:09:31 1.23
--- traceback.py 2001/03/21 20:29:18 1.24
***************
*** 176,186 ****
i = i+1
list.append(' %s\n' % line.strip())
! s = ' '
! for c in line[i:offset-1]:
! if c.isspace():
! s = s + c
! else:
! s = s + ' '
! list.append('%s^\n' % s)
value = msg
s = _some_str(value)
--- 176,187 ----
i = i+1
list.append(' %s\n' % line.strip())
! if offset is not None:
! s = ' '
! for c in line[i:offset-1]:
! if c.isspace():
! s = s + c
! else:
! s = s + ' '
! list.append('%s^\n' % s)
value = msg
s = _some_str(value)