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
efbc4752
Commit
efbc4752
authored
Oct 03, 2013
by
Eric Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[issue19151] Fix docstring and use of _get_suppported_file_loaders() to reflect 2-tuples.
parent
60b18340
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2616 additions
and
2615 deletions
+2616
-2615
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+2
-2
Misc/NEWS
Misc/NEWS
+3
-0
Python/importlib.h
Python/importlib.h
+2611
-2613
No files found.
Lib/importlib/_bootstrap.py
View file @
efbc4752
...
...
@@ -781,7 +781,7 @@ class WindowsRegistryFinder:
_os
.
stat
(
filepath
)
except
OSError
:
return
None
for
loader
,
suffixes
,
_
in
_get_supported_file_loaders
():
for
loader
,
suffixes
in
_get_supported_file_loaders
():
if
filepath
.
endswith
(
tuple
(
suffixes
)):
return
loader
(
fullname
,
filepath
)
...
...
@@ -1643,7 +1643,7 @@ def _calc___package__(globals):
def
_get_supported_file_loaders
():
"""Returns a list of file-based module loaders.
Each item is a tuple (loader, suffixes
, allow_packages
).
Each item is a tuple (loader, suffixes).
"""
extensions
=
ExtensionFileLoader
,
_imp
.
extension_suffixes
()
source
=
SourceFileLoader
,
SOURCE_SUFFIXES
...
...
Misc/NEWS
View file @
efbc4752
...
...
@@ -203,6 +203,9 @@ Library
- Issue #18405: Improve the entropy of crypt.mksalt().
- Issue #19151: Fix docstring and use of _get_suppported_file_loaders() to
reflect 2-tuples.
- Issue #18676: Change '
positive
' to '
non
-
negative
' in queue.py put and get
docstrings and ValueError messages. Patch by Zhongyue Luo
...
...
Python/importlib.h
View file @
efbc4752
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