summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2012-08-02 13:03:58 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2012-08-02 13:03:58 (GMT)
commit4941774f59ae808a764e29e09abfedf6fc199ed3 (patch)
treecd292c1521df0575fedbf7a5dca6a874f110b84e /Lib
parente3376ef6d218b9df08fbe218eba4f3ba0602333a (diff)
downloadcpython-4941774f59ae808a764e29e09abfedf6fc199ed3.zip
cpython-4941774f59ae808a764e29e09abfedf6fc199ed3.tar.gz
cpython-4941774f59ae808a764e29e09abfedf6fc199ed3.tar.bz2
Issue #15502: Bring the importlib.PathFinder docs and docstring more in line with the new import system documentation, and fix various parts of the new docs that weren't quite right given PEP 420 or were otherwise a bit misleading. Also note the key terminology problem still being discussed in the issue
Diffstat (limited to 'Lib')
-rw-r--r--Lib/importlib/_bootstrap.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 7b6ef39..b9b35ec 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1183,7 +1183,7 @@ class NamespaceLoader:
class PathFinder:
- """Meta path finder for sys.(path|path_hooks|path_importer_cache)."""
+ """Meta path finder for sys.path and package __path__ attributes."""
@classmethod
def _path_hooks(cls, path):
@@ -1204,10 +1204,10 @@ class PathFinder:
@classmethod
def _path_importer_cache(cls, path):
- """Get the finder for the path from sys.path_importer_cache.
+ """Get the finder for the path entry from sys.path_importer_cache.
- If the path is not in the cache, find the appropriate finder and cache
- it. If no finder is available, store None.
+ If the path entry is not in the cache, find the appropriate finder
+ and cache it. If no finder is available, store None.
"""
if path == '':