[Python-checkins] CVS: python/dist/src/Lib codecs.py,1.4,1.5

Guido van Rossum python-dev@python.org
Fri, 31 Mar 2000 12:22:36 -0500 (EST)


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

Modified Files:
	codecs.py 
Log Message:
Marc-Andre Lemburg: Error reporting in the codec registry and lookup
mechanism is enhanced to be more informative.


Index: codecs.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/codecs.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** codecs.py	2000/03/24 22:14:08	1.4
--- codecs.py	2000/03/31 17:22:29	1.5
***************
*** 12,16 ****
  ### Registry and builtin stateless codec functions
  
! from _codecs import *
  
  ### Constants
--- 12,20 ----
  ### Registry and builtin stateless codec functions
  
! try:
!     from _codecs import *
! except ImportError,why:
!     raise SystemError,\
!           'Failed to load the builtin codecs: %s' % why
  
  ### Constants