]> granicus.if.org Git - python/commitdiff
Issue #13959: Add to imp.find_module() and load_module's docstrings
authorBrett Cannon <brett@python.org>
Fri, 15 Jun 2012 23:39:06 +0000 (19:39 -0400)
committerBrett Cannon <brett@python.org>
Fri, 15 Jun 2012 23:39:06 +0000 (19:39 -0400)
that they are deprecated (previous commit documented this fact in the
module docs).

Lib/imp.py

index edef0bec8c292dea89aa397c531cb396b2da97d5..8c89237f07b1a6ab532b06e1f11e6e608251ed1e 100644 (file)
@@ -150,9 +150,10 @@ def load_package(name, path):
     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 @@ def load_module(name, file, filename, details):
             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