[Python-checkins] cpython: Issue #13959: Add to imp.find_module() and load_module's docstrings

brett.cannon python-checkins at python.org
Sat Jun 16 01:39:12 CEST 2012


http://hg.python.org/cpython/rev/034c814eb187
changeset:   77456:034c814eb187
user:        Brett Cannon <brett at python.org>
date:        Fri Jun 15 19:39:06 2012 -0400
summary:
  Issue #13959: Add to imp.find_module() and load_module's docstrings
that they are deprecated (previous commit documented this fact in the
module docs).

files:
  Lib/imp.py |  10 ++++++----
  1 files changed, 6 insertions(+), 4 deletions(-)


diff --git a/Lib/imp.py b/Lib/imp.py
--- a/Lib/imp.py
+++ b/Lib/imp.py
@@ -150,9 +150,10 @@
     return _bootstrap.SourceFileLoader(name, path).load_module(name)
 
 
-# XXX deprecate
 def load_module(name, file, filename, details):
-    """Load a module, given information returned by find_module().
+    """**DEPRECATED**
+
+    Load a module, given information returned by find_module().
 
     The module name must include the full package name, if any.
 
@@ -180,9 +181,10 @@
             raise ImportError(msg, name=name)
 
 
-# XXX deprecate
 def find_module(name, path=None):
-    """Search for a module.
+    """**DEPRECATED**
+
+    Search for a module.
 
     If path is omitted or None, search for a built-in, frozen or special
     module and continue search in sys.path. The module name cannot

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


More information about the Python-checkins mailing list