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
c04ddee8
Commit
c04ddee8
authored
May 04, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
9a86447c
feccc099
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
113 additions
and
128 deletions
+113
-128
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+1
-6
Python/importlib.h
Python/importlib.h
+112
-122
No files found.
Lib/importlib/_bootstrap.py
View file @
c04ddee8
...
@@ -1151,12 +1151,7 @@ def _setup(sys_module, _imp_module):
...
@@ -1151,12 +1151,7 @@ def _setup(sys_module, _imp_module):
def
_install
(
sys_module
,
_imp_module
):
def
_install
(
sys_module
,
_imp_module
):
"""Install importlib as the implementation of import.
"""Install importlib as the implementation of import."""
It is assumed that _imp and sys have been imported and injected into the
global namespace for the module prior to calling this function.
"""
_setup
(
sys_module
,
_imp_module
)
_setup
(
sys_module
,
_imp_module
)
extensions
=
ExtensionFileLoader
,
_imp_module
.
extension_suffixes
(),
False
extensions
=
ExtensionFileLoader
,
_imp_module
.
extension_suffixes
(),
False
source
=
SourceFileLoader
,
_SOURCE_SUFFIXES
,
True
source
=
SourceFileLoader
,
_SOURCE_SUFFIXES
,
True
...
...
Python/importlib.h
View file @
c04ddee8
No preview for this file type
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