[Python-checkins] CVS: python/dist/src/Lib sgmllib.py,1.24,1.25

Eric S. Raymond esr@users.sourceforge.net
Fri, 09 Feb 2001 02:12:21 -0800


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

Modified Files:
	sgmllib.py 
Log Message:
Use ValueError instead of string.atoi.error, since we've switched to
int().


Index: sgmllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sgmllib.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** sgmllib.py	2001/02/09 07:49:30	1.24
--- sgmllib.py	2001/02/09 10:12:19	1.25
***************
*** 355,359 ****
          try:
              n = int(name)
!         except string.atoi_error:
              self.unknown_charref(name)
              return
--- 355,359 ----
          try:
              n = int(name)
!         except ValueError:
              self.unknown_charref(name)
              return