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
42535f01
Commit
42535f01
authored
May 30, 2014
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a parameter name to make sense again
parent
069c87be
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3181 additions
and
3180 deletions
+3181
-3180
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+3
-2
Python/importlib.h
Python/importlib.h
+3178
-3178
No files found.
Lib/importlib/_bootstrap.py
View file @
42535f01
...
...
@@ -581,13 +581,14 @@ def _find_module_shim(self, fullname):
return
loader
def
_load_module_shim
(
spec
,
fullname
):
# Typically used by loader classes as a method replacement.
def
_load_module_shim
(
self
,
fullname
):
"""Load the specified module into sys.modules and return it.
This method is deprecated. Use loader.exec_module instead.
"""
spec
=
spec_from_loader
(
fullname
,
s
pec
)
spec
=
spec_from_loader
(
fullname
,
s
elf
)
if
fullname
in
sys
.
modules
:
module
=
sys
.
modules
[
fullname
]
_exec
(
spec
,
module
)
...
...
Python/importlib.h
View file @
42535f01
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