From: Brett Cannon Date: Wed, 3 Feb 2010 22:11:54 +0000 (+0000) Subject: Update a docstring to suggest using importlib.import_module instead of calling __impo... X-Git-Tag: v2.7a3~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18e4db5ebe8396d06478c0a3fdbf3076e4b747ed;p=thirdparty%2FPython%2Fcpython.git Update a docstring to suggest using importlib.import_module instead of calling __import__ directly. --- diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index beaa170ad3fc..f96bad85a73c 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -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):