]> granicus.if.org Git - python/commitdiff
Update a docstring to suggest using importlib.import_module instead of calling __impo...
authorBrett Cannon <bcannon@gmail.com>
Wed, 3 Feb 2010 22:11:54 +0000 (22:11 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 3 Feb 2010 22:11:54 +0000 (22:11 +0000)
Lib/test/test_support.py

index beaa170ad3fc2f604ed421b8a8740fede3c93aa1..f96bad85a73cbee7ab2f18d0cc4d473f6f47d23d 100644 (file)
@@ -493,7 +493,7 @@ class CleanImport(object):
     Use like this:
 
         with CleanImport("foo"):
-            __import__("foo") # new reference
+            importlib.import_modulefoo") # new reference
     """
 
     def __init__(self, *module_names):