[Python-checkins] CVS: python/dist/src/Lib pstats.py,1.16,1.17
Fred L. Drake
fdrake@users.sourceforge.net
2001年5月11日 12:21:43 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv18257
Modified Files:
pstats.py
Log Message:
When guarding an import, only catch ImportError.
Index: pstats.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pstats.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** pstats.py 2001年04月26日 07:32:38 1.16
--- pstats.py 2001年05月11日 19:21:41 1.17
***************
*** 534,538 ****
try:
import readline
! except:
pass
--- 534,538 ----
try:
import readline
! except ImportError:
pass