[Python-checkins] CVS: python/dist/src/Lib exceptions.py,1.17,1.18

Guido van Rossum guido@cnri.reston.va.us
Fri, 10 Mar 2000 18:16:05 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Lib
In directory eric:/home/guido/hp/mal/py-patched/Lib

Modified Files:
	exceptions.py 
Log Message:
Marc-Andre Lemburg: Add UnicodeError, derived from ValueError.


Index: exceptions.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/exceptions.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** exceptions.py	2000/02/17 15:12:01	1.17
--- exceptions.py	2000/03/10 23:16:02	1.18
***************
*** 62,65 ****
--- 62,68 ----
        |
        +-- ValueError
+       |    |
+       |    +-- UnicodeError(*)
+       |
        +-- SystemError
        +-- MemoryError
***************
*** 223,226 ****
--- 226,233 ----
  class UnboundLocalError(NameError):
      """Local name referenced but not bound to a value."""
+     pass
+ 
+ class UnicodeError(ValueError):
+     """Unicode related error."""
      pass