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
6336fb27
Commit
6336fb27
authored
Aug 12, 2016
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27712: Fix some typos in the import docs.
Thanks to Xiang Zhang for the patch.
parent
7f65af3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/reference/import.rst
Doc/reference/import.rst
+2
-2
No files found.
Doc/reference/import.rst
View file @
6336fb27
...
...
@@ -774,7 +774,7 @@ hooks <path entry hook>` in this list is called with a single argument, the
path entry to be searched. This callable may either return a :term:`path
entry finder` that can handle the path entry, or it may raise
:exc:`ImportError`. An :exc:`ImportError` is used by the path based finder to
signal that the hook cannot find a :term:`path entry finder`
.
signal that the hook cannot find a :term:`path entry finder`
for that :term:`path entry`. The
exception is ignored and :term:`import path` iteration continues. The hook
should expect either a string or bytes object; the encoding of bytes objects
...
...
@@ -828,7 +828,7 @@ portion.
Older
path
entry
finders
may
implement
one
of
these
two
deprecated
methods
instead
of
``
find_spec
()``.
The
methods
are
still
respected
for
the
sake
of
backward
compatibility
.
Howeve
ve
r
,
if
``
find_spec
()``
is
sake
of
backward
compatibility
.
However
,
if
``
find_spec
()``
is
implemented
on
the
path
entry
finder
,
the
legacy
methods
are
ignored
.
:
meth
:`~
importlib
.
abc
.
PathEntryFinder
.
find_loader
`
takes
one
argument
,
the
...
...
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