mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
Marc-Andre Lemburg: Error reporting in the codec registry and lookup
mechanism is enhanced to be more informative.
This commit is contained in:
parent
52a644cbda
commit
b95de4f847
2 changed files with 51 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue