[Python-checkins] CVS: python/dist/src/Lib inspect.py,1.26,1.27
Neal Norwitz
nnorwitz@users.sourceforge.net
Tue, 12 Mar 2002 19:14:28 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv11624/Lib
Modified Files:
inspect.py
Log Message:
SF #515015, raise exception if code not found in findsource()
Index: inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/inspect.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** inspect.py 15 Oct 2001 22:03:31 -0000 1.26
--- inspect.py 13 Mar 2002 03:14:26 -0000 1.27
***************
*** 407,410 ****
--- 407,411 ----
lnum = lnum - 1
return lines, lnum
+ raise IOError, 'could not find code object'
def getcomments(object):