mirror of https://github.com/python/cpython
Patch #571603: Refer to encodings package explicitly.
This commit is contained in:
parent
e567114e47
commit
fc4c24c142
|
@ -59,7 +59,7 @@ def search_function(encoding):
|
|||
import aliases
|
||||
modname = aliases.aliases.get(modname, modname)
|
||||
try:
|
||||
mod = __import__(modname, globals(), locals(), _import_tail)
|
||||
mod = __import__('encodings.' + modname, globals(), locals(), _import_tail)
|
||||
except ImportError,why:
|
||||
mod = None
|
||||
if mod is None:
|
||||
|
|
Loading…
Reference in New Issue