[Python-checkins] CVS: python/dist/src/Lib mhlib.py,1.19,1.20
Fred L. Drake
python-dev@python.org
Wed, 28 Jun 2000 22:06:05 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv13198
Modified Files:
mhlib.py
Log Message:
Convert to use class-based exceptions.
Correct exception information in one docstring.
Index: mhlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mhlib.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** mhlib.py 2000/02/04 15:10:33 1.19
--- mhlib.py 2000/06/29 05:06:02 1.20
***************
*** 86,90 ****
# Exported constants
! Error = 'mhlib.Error'
--- 86,91 ----
# Exported constants
! class Error(Exception):
! pass
***************
*** 331,335 ****
def getcurrent(self):
! """Return the current message. Raise KeyError when there is none."""
seqs = self.getsequences()
try:
--- 332,336 ----
def getcurrent(self):
! """Return the current message. Raise Error when there is none."""
seqs = self.getsequences()
try: