Mailing List Archive

CVS: python/dist/src/Lib tabnanny.py,1.16,1.17 xdrlib.py,1.13,1.14
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv3973

Modified Files:
tabnanny.py xdrlib.py
Log Message:
Derive exception classes from Exception

Index: tabnanny.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tabnanny.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** tabnanny.py 7 Aug 2001 17:19:25 -0000 1.16
--- tabnanny.py 31 Mar 2002 13:59:18 -0000 1.17
***************
*** 48,52 ****
check(arg)

! class NannyNag:
def __init__(self, lineno, msg, line):
self.lineno, self.msg, self.line = lineno, msg, line
--- 48,52 ----
check(arg)

! class NannyNag(Exception):
def __init__(self, lineno, msg, line):
self.lineno, self.msg, self.line = lineno, msg, line

Index: xdrlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xdrlib.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** xdrlib.py 16 Aug 2001 17:06:44 -0000 1.13
--- xdrlib.py 31 Mar 2002 13:59:18 -0000 1.14
***************
*** 14,18 ****

# exceptions
! class Error:
"""Exception class for this module. Use:

--- 14,18 ----

# exceptions
! class Error(Exception):
"""Exception class for this module. Use: