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
0472217d
Commit
0472217d
authored
May 27, 2016
by
Eric Snow
Browse files
Options
Browse Files
Download
Plain Diff
Issue #27138: Fix the doc comment for FileFinder.find_spec().
parents
5677aa75
fc36e66a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Lib/importlib/_bootstrap_external.py
Lib/importlib/_bootstrap_external.py
+2
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/importlib/_bootstrap_external.py
View file @
0472217d
...
...
@@ -1215,8 +1215,8 @@ class FileFinder:
submodule_search_locations
=
smsl
)
def
find_spec
(
self
,
fullname
,
target
=
None
):
"""Try to find a
loader for the specified module, or the namespac
e
package portions. Returns (loader, list-of-portions)
."""
"""Try to find a
spec for the specified module. Returns th
e
matching spec, or None if not found
."""
is_namespace
=
False
tail_module
=
fullname
.
rpartition
(
'.'
)[
2
]
try
:
...
...
Misc/NEWS
View file @
0472217d
...
...
@@ -103,6 +103,8 @@ Core and Builtins
-
Issue
#
26718
:
super
.
__init__
no
longer
leaks
memory
if
called
multiple
times
.
NOTE
:
A
direct
call
of
super
.
__init__
is
not
endorsed
!
-
Issue
#
27138
:
Fix
the
doc
comment
for
FileFinder
.
find_spec
().
-
Issue
#
25339
:
PYTHONIOENCODING
now
has
priority
over
locale
in
setting
the
error
handler
for
stdin
and
stdout
.
...
...
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