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
1d75382e
Commit
1d75382e
authored
Jun 16, 2013
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a misnaming of a method and an argument
parent
27bbfdbc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1074 additions
and
1074 deletions
+1074
-1074
Doc/library/importlib.rst
Doc/library/importlib.rst
+1
-1
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+2
-2
Python/importlib.h
Python/importlib.h
+1071
-1071
No files found.
Doc/library/importlib.rst
View file @
1d75382e
...
...
@@ -714,7 +714,7 @@ find and load modules.
The path the finder will search in.
.. method:: find_
module
(fullname)
.. method:: find_
loader
(fullname)
Attempt to find the loader to handle *fullname* within :attr:`path`.
...
...
Lib/importlib/_bootstrap.py
View file @
1d75382e
...
...
@@ -1329,12 +1329,12 @@ class FileFinder:
"""
def
__init__
(
self
,
path
,
*
details
):
def
__init__
(
self
,
path
,
*
loader_
details
):
"""Initialize with the path to search on and a variable number of
2-tuples containing the loader and the file suffixes the loader
recognizes."""
loaders
=
[]
for
loader
,
suffixes
in
details
:
for
loader
,
suffixes
in
loader_
details
:
loaders
.
extend
((
suffix
,
loader
)
for
suffix
in
suffixes
)
self
.
_loaders
=
loaders
# Base (directory) path
...
...
Python/importlib.h
View file @
1d75382e
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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