mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Patch #571603: Refer to encodings package explicitly.
This commit is contained in:
parent
e567114e47
commit
fc4c24c142
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ def search_function(encoding):
|
||||||
import aliases
|
import aliases
|
||||||
modname = aliases.aliases.get(modname, modname)
|
modname = aliases.aliases.get(modname, modname)
|
||||||
try:
|
try:
|
||||||
mod = __import__(modname, globals(), locals(), _import_tail)
|
mod = __import__('encodings.' + modname, globals(), locals(), _import_tail)
|
||||||
except ImportError,why:
|
except ImportError,why:
|
||||||
mod = None
|
mod = None
|
||||||
if mod is None:
|
if mod is None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue