Commit 4a658756 authored by Georg Brandl's avatar Georg Brandl

Bug #1446043: correctly raise a LookupError if an encoding name given

to encodings.search_function() contains a dot.
 (backport from rev. 52075)
parent dbad9349
......@@ -90,7 +90,7 @@ def search_function(encoding):
else:
modnames = [norm_encoding]
for modname in modnames:
if not modname:
if not modname or '.' in modname:
continue
try:
mod = __import__('encodings.' + modname,
......
......@@ -44,6 +44,9 @@ Extension Modules
Library
-------
- Bug #1446043: correctly raise a LookupError if an encoding name given
to encodings.search_function() contains a dot.
- Bug #1560617: in pyclbr, return full module name not only for classes,
but also for functions.
......
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