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

Guido van Rossum guido@cnri.reston.va.us
2000年3月10日 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
 

AltStyle によって変換されたページ (->オリジナル) /