Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc4c24c

Browse files
committed
Patch #571603: Refer to encodings package explicitly.
1 parent e567114 commit fc4c24c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/encodings/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def search_function(encoding):
5959
import aliases
6060
modname = aliases.aliases.get(modname, modname)
6161
try:
62-
mod = __import__(modname, globals(), locals(), _import_tail)
62+
mod = __import__('encodings.' + modname, globals(), locals(), _import_tail)
6363
except ImportError,why:
6464
mod = None
6565
if mod is None:

0 commit comments

Comments
 (0)