[Python-checkins] python/dist/src/Lib/encodings __init__.py,1.8,1.9

Neal Norwitz neal@metaslash.com
Sun, 28 Jul 2002 12:57:52 -0400


loewis@users.sourceforge.net wrote:
> 
> *** 60,64 ****
>           modname = aliases.aliases.get(modname, modname)
>           try:
> !             mod = __import__(modname, globals(), locals(), _import_tail)
>           except ImportError,why:
>               mod = None
> --- 60,64 ----
>           modname = aliases.aliases.get(modname, modname)
>           try:
> !             mod = __import__('encodings.' + modname, globals(), locals(), _import_tail)
>           except ImportError,why:
>               mod = None

This change breaks test_charmapcodec:
	 crashed -- exceptions.LookupError: unknown encoding

Neal