Commit fc4c24c1 authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #571603: Refer to encodings package explicitly.

parent e567114e
...@@ -59,7 +59,7 @@ def search_function(encoding): ...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment