Marc-Andre Lemburg: Error reporting in the codec registry and lookup

mechanism is enhanced to be more informative.
This commit is contained in:
Guido van Rossum 2000-03-31 17:25:23 +00:00
parent 52a644cbda
commit b95de4f847
2 changed files with 51 additions and 13 deletions

View file

@ -11,7 +11,11 @@ import struct,types,__builtin__
### Registry and builtin stateless codec functions
from _codecs import *
try:
from _codecs import *
except ImportError,why:
raise SystemError,\
'Failed to load the builtin codecs: %s' % why
### Constants