Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ef37dfcd
Commit
ef37dfcd
authored
Sep 07, 2016
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #28005: Allow ImportErrors in encoding implementation to propagate.
parent
8195219a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Lib/encodings/__init__.py
Lib/encodings/__init__.py
+3
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/encodings/__init__.py
View file @
ef37dfcd
...
...
@@ -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
:
...
...
Misc/NEWS
View file @
ef37dfcd
...
...
@@ -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
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment