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
e3171bdd
Commit
e3171bdd
authored
Oct 03, 2013
by
Eric Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[issue19152] Revert 832579dbafd6.
parent
f14bc7ab
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
193 additions
and
224 deletions
+193
-224
Doc/library/importlib.rst
Doc/library/importlib.rst
+1
-5
Lib/importlib/_bootstrap.py
Lib/importlib/_bootstrap.py
+0
-5
Lib/importlib/abc.py
Lib/importlib/abc.py
+0
-2
Misc/NEWS
Misc/NEWS
+0
-2
Python/importlib.h
Python/importlib.h
+192
-210
No files found.
Doc/library/importlib.rst
View file @
e3171bdd
...
...
@@ -800,7 +800,7 @@ find and load modules.
..
class
::
ExtensionFileLoader
(
fullname
,
path
)
A
concrete
implementation
of
:
class
:`
importlib
.
abc
.
Execution
Loader
`
for
A
concrete
implementation
of
:
class
:`
importlib
.
abc
.
Inspect
Loader
`
for
extension
modules
.
The
*
fullname
*
argument
specifies
the
name
of
the
module
the
loader
is
to
...
...
@@ -834,10 +834,6 @@ find and load modules.
Returns
``
None
``
as
extension
modules
do
not
have
source
code
.
..
method
::
get_filename
(
fullname
)
Returns
:
attr
:`
path
`.
:
mod
:`
importlib
.
util
`
--
Utility
code
for
importers
---------------------------------------------------
...
...
Lib/importlib/_bootstrap.py
View file @
e3171bdd
...
...
@@ -1153,11 +1153,6 @@ class ExtensionFileLoader:
"""Return None as extension modules have no source code."""
return
None
@
_check_name
def
get_filename
(
self
,
fullname
):
"""Return the path to the source file as found by the finder."""
return
self
.
path
class
_NamespacePath
:
"""Represents a namespace package's path. It uses the module name
...
...
Lib/importlib/abc.py
View file @
e3171bdd
...
...
@@ -168,8 +168,6 @@ class ExecutionLoader(InspectLoader):
set to."""
raise
NotImplementedError
_register
(
machinery
.
ExtensionFileLoader
)
class
FileLoader
(
_bootstrap
.
FileLoader
,
ResourceLoader
,
ExecutionLoader
):
...
...
Misc/NEWS
View file @
e3171bdd
...
...
@@ -206,8 +206,6 @@ Library
- Issue #19151: Fix docstring and use of _get_supported_file_loaders() to
reflect 2-tuples.
- Issue #19152: Add ExtensionFileLoader.get_filename().
- 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 @
e3171bdd
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