changeset 58684:fba1c78f104e

Merged revisions 77956-77957 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77956 | brett.cannon | 2010-02-03 14:11:54 -0800 (Wed, 03 Feb 2010) | 1 line Update a docstring to suggest using importlib.import_module instead of calling __import__ directly. ........ r77957 | brett.cannon | 2010-02-03 14:13:44 -0800 (Wed, 03 Feb 2010) | 1 line Fix a typo in a docstring introduced in r77956. ........
author Brett Cannon <bcannon@gmail.com>
date Wed, 03 Feb 2010 22:16:11 +0000
parents 1c7feac0d6d6
children 0c2b0898643e
files Lib/test/support.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/test/support.py	Wed Feb 03 16:10:34 2010 +0000
+++ b/Lib/test/support.py	Wed Feb 03 22:16:11 2010 +0000
@@ -477,7 +477,7 @@
     Use like this:
 
         with CleanImport("foo"):
-            __import__("foo") # new reference
+            importlib.import_module("foo") # new reference
     """
 
     def __init__(self, *module_names):