[Python-checkins] cpython (3.3): Fix a misnaming of a method and an argument

brett.cannon python-checkins at python.org
Mon Jun 17 01:09:55 CEST 2013


http://hg.python.org/cpython/rev/e13371d5b4e4
changeset:   84174:e13371d5b4e4
branch:      3.3
parent:      84144:61a1aa69e83e
user:        Brett Cannon <brett at python.org>
date:        Sun Jun 16 19:06:55 2013 -0400
summary:
  Fix a misnaming of a method and an argument

files:
  Doc/library/importlib.rst   |     2 +-
  Lib/importlib/_bootstrap.py |     4 +-
  Python/importlib.h          |  2156 +++++++++++-----------
  3 files changed, 1081 insertions(+), 1081 deletions(-)


diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -714,7 +714,7 @@
 
       The path the finder will search in.
 
-   .. method:: find_module(fullname)
+   .. method:: find_loader(fullname)
 
       Attempt to find the loader to handle *fullname* within :attr:`path`.
 
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1329,12 +1329,12 @@
 
     """
 
-    def __init__(self, path, *details):
+    def __init__(self, path, *loader_details):
         """Initialize with the path to search on and a variable number of
         2-tuples containing the loader and the file suffixes the loader
         recognizes."""
         loaders = []
-        for loader, suffixes in details:
+        for loader, suffixes in loader_details:
             loaders.extend((suffix, loader) for suffix in suffixes)
         self._loaders = loaders
         # Base (directory) path
diff --git a/Python/importlib.h b/Python/importlib.h
--- a/Python/importlib.h
+++ b/Python/importlib.h
[stripped]

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list