diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-12-09 01:48:31 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-12-09 01:48:31 (GMT) |
commit | fee82f4f9cd5f2fbc720fe8c24363e50c57e5aee (patch) | |
tree | 7693823c23c0f636b5f4842a6ca70fe525d0ea92 /Doc | |
parent | ac625351643d5732bcaa77844ef1506bf5c978ab (diff) | |
download | cpython-fee82f4f9cd5f2fbc720fe8c24363e50c57e5aee.zip cpython-fee82f4f9cd5f2fbc720fe8c24363e50c57e5aee.tar.gz cpython-fee82f4f9cd5f2fbc720fe8c24363e50c57e5aee.tar.bz2 |
Clarify the intention of raising ImportError for importlib.abc.PyLoader.(source|bytecode)_path.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/importlib.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 7915c9d..d6bc8c5 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -230,7 +230,7 @@ are also provided to help in implementing the core ABCs. An abstract method that returns the path to the source code for a module. Should return :keyword:`None` if there is no source code or - raise :exc:`ImportError` if the module cannot be found. + raise :exc:`ImportError` if the module cannot be handled by the loader. .. method:: get_filename(fullname) @@ -282,7 +282,8 @@ are also provided to help in implementing the core ABCs. An abstract method which returns the path to the bytecode for the specified module, if it exists. It returns :keyword:`None` if no bytecode exists (yet). - Raises :exc:`ImportError` if the module is not found. + Raises :exc:`ImportError` if the module cannot be handled by the + loader. .. method:: get_filename(fullname) |