Mailing List Archive

CVS: python/dist/src/Lib inspect.py,1.29,1.30
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv9726

Modified Files:
inspect.py
Log Message:
tighten up unqualified except in currentframe()
see bug 411881


Index: inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/inspect.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** inspect.py 23 Mar 2002 23:51:04 -0000 1.29
--- inspect.py 25 Mar 2002 21:37:54 -0000 1.30
***************
*** 763,768 ****
"""Return the frame object for the caller's stack frame."""
try:
! raise 'catch me'
! except:
return sys.exc_traceback.tb_frame.f_back

--- 763,768 ----
"""Return the frame object for the caller's stack frame."""
try:
! 1/0
! except ZeroDivisionError:
return sys.exc_traceback.tb_frame.f_back