mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Issue #28005: Allow ImportErrors in encoding implementation to propagate.
This commit is contained in:
parent
8195219acb
commit
ef37dfcd84
2 changed files with 5 additions and 2 deletions
|
@ -98,8 +98,9 @@ def search_function(encoding):
|
|||
# module with side-effects that is not in the 'encodings' package.
|
||||
mod = __import__('encodings.' + modname, fromlist=_import_tail,
|
||||
level=0)
|
||||
except ImportError:
|
||||
pass
|
||||
except ModuleNotFoundError as ex:
|
||||
if ex.name != 'encodings.' + modname:
|
||||
raise
|
||||
else:
|
||||
break
|
||||
else:
|
||||
|
|
|
@ -99,6 +99,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #28005: Allow ImportErrors in encoding implementation to propagate.
|
||||
|
||||
- Issue #27570: Avoid zero-length memcpy() etc calls with null source
|
||||
pointers in the "ctypes" and "array" modules.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue