Commit ef37dfcd authored by Steve Dower's avatar Steve Dower

Issue #28005: Allow ImportErrors in encoding implementation to propagate.

parent 8195219a
...@@ -98,8 +98,9 @@ def search_function(encoding): ...@@ -98,8 +98,9 @@ def search_function(encoding):
# module with side-effects that is not in the 'encodings' package. # module with side-effects that is not in the 'encodings' package.
mod = __import__('encodings.' + modname, fromlist=_import_tail, mod = __import__('encodings.' + modname, fromlist=_import_tail,
level=0) level=0)
except ImportError: except ModuleNotFoundError as ex:
pass if ex.name != 'encodings.' + modname:
raise
else: else:
break break
else: else:
......
...@@ -99,6 +99,8 @@ Core and Builtins ...@@ -99,6 +99,8 @@ Core and Builtins
Library Library
------- -------
- Issue #28005: Allow ImportErrors in encoding implementation to propagate.
- Issue #27570: Avoid zero-length memcpy() etc calls with null source - Issue #27570: Avoid zero-length memcpy() etc calls with null source
pointers in the "ctypes" and "array" modules. pointers in the "ctypes" and "array" modules.
......
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