From 18e4db5ebe8396d06478c0a3fdbf3076e4b747ed Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 3 Feb 2010 22:11:54 +0000 Subject: [PATCH] Update a docstring to suggest using importlib.import_module instead of calling __import__ directly. --- Lib/test/test_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index beaa170ad3f..f96bad85a73 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):