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
0ecd30b4
Commit
0ecd30b4
authored
Feb 01, 2013
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17098: Make sure every module has __loader__ defined.
Thanks to Thomas Heller for the bug report.
parent
89fa86b0
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
298 additions
and
288 deletions
+298
-288
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+5
-3
Misc/NEWS
Misc/NEWS
+3
-0
Modules/signalmodule.c
Modules/signalmodule.c
+1
-2
Python/importlib.h
Python/importlib.h
+289
-283
No files found.
Lib/importlib/_bootstrap.py
View file @
0ecd30b4
...
...
@@ -1703,7 +1703,9 @@ def _setup(sys_module, _imp_module):
else
:
BYTECODE_SUFFIXES
=
DEBUG_BYTECODE_SUFFIXES
for
module
in
(
_imp
,
sys
):
module_type
=
type
(
sys
)
for
module
in
sys
.
modules
.
values
():
if
isinstance
(
module
,
module_type
):
if
not
hasattr
(
module
,
'__loader__'
):
module
.
__loader__
=
BuiltinImporter
...
...
Misc/NEWS
View file @
0ecd30b4
...
...
@@ -12,6 +12,9 @@ What's New in Python 3.3.1?
Core and Builtins
-----------------
- Issue #17098: All modules now have __loader__ set even if they pre-exist the
bootstrapping of importlib.
- Issue #16979: Fix error handling bugs in the unicode-escape-decode decoder.
- Issue #13886: Fix input() to not strip out input bytes that cannot be decoded
...
...
Modules/signalmodule.c
View file @
0ecd30b4
...
...
@@ -1367,9 +1367,8 @@ PyErr_SetInterrupt(void)
void
PyOS_InitInterrupts
(
void
)
{
PyObject
*
m
=
PyI
nit_signal
(
);
PyObject
*
m
=
PyI
mport_ImportModule
(
"signal"
);
if
(
m
)
{
_PyImport_FixupBuiltin
(
m
,
"signal"
);
Py_DECREF
(
m
);
}
}
...
...
Python/importlib.h
View file @
0ecd30b4
This diff is collapsed.
Click to expand it.
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