mirror of
https://github.com/python/cpython.git
synced 2025-11-13 07:26:31 +00:00
Fix some minor typos in the importlib docs.
This commit is contained in:
parent
2e3155e2fe
commit
afcd5f36f0
1 changed files with 2 additions and 2 deletions
|
|
@ -238,7 +238,7 @@ are also provided to help in implementing the core ABCs.
|
||||||
|
|
||||||
A concrete implementation of
|
A concrete implementation of
|
||||||
:meth:`importlib.abc.InspectLoader.get_source`. Uses
|
:meth:`importlib.abc.InspectLoader.get_source`. Uses
|
||||||
:meth:`importlib.abc.InspectLoader.get_data` and :meth:`source_path` to
|
:meth:`importlib.abc.ResourceLoader.get_data` and :meth:`source_path` to
|
||||||
get the source code. It tries to guess the source encoding using
|
get the source code. It tries to guess the source encoding using
|
||||||
:func:`tokenize.detect_encoding`.
|
:func:`tokenize.detect_encoding`.
|
||||||
|
|
||||||
|
|
@ -253,7 +253,7 @@ are also provided to help in implementing the core ABCs.
|
||||||
|
|
||||||
An abstract method which returns the modification time for the source
|
An abstract method which returns the modification time for the source
|
||||||
code of the specified module. The modification time should be an
|
code of the specified module. The modification time should be an
|
||||||
integer. If there is no source code, return :keyword:`None. If the
|
integer. If there is no source code, return :keyword:`None`. If the
|
||||||
module cannot be found then :exc:`ImportError` is raised.
|
module cannot be found then :exc:`ImportError` is raised.
|
||||||
|
|
||||||
.. method:: bytecode_path(fullname)
|
.. method:: bytecode_path(fullname)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue