[Python-checkins] CVS: python/dist/src/Lib anydbm.py,1.10,1.10.4.1

Anthony Baxter anthonybaxter@users.sourceforge.net
Tue, 04 Dec 2001 20:29:01 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv3802

Modified Files:
      Tag: release21-maint
	anydbm.py 
Log Message:
backport 1.11
Catch only the relevant exceptions instead of using a bare except clause.

Index: anydbm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/anydbm.py,v
retrieving revision 1.10
retrieving revision 1.10.4.1
diff -C2 -d -r1.10 -r1.10.4.1
*** anydbm.py	2001/02/18 03:30:53	1.10
--- anydbm.py	2001/12/05 04:28:59	1.10.4.1
***************
*** 46,50 ****
      class error(Exception):
          pass
! except:
      error = "anydbm.error"
  
--- 46,50 ----
      class error(Exception):
          pass
! except (NameError, TypeError):
      error = "anydbm.error"