diff options
| author | Brett Cannon <bcannon@gmail.com> | 2010-02-03 22:11:54 (GMT) |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2010-02-03 22:11:54 (GMT) |
| commit | 18e4db5ebe8396d06478c0a3fdbf3076e4b747ed (patch) | |
| tree | 4cf486db30d5c483214fc78ef67afb47f2514f51 /Lib/test/test_support.py | |
| parent | c68e9f0d200751692b9f54db337b80a465667fae (diff) | |
| download | cpython-18e4db5ebe8396d06478c0a3fdbf3076e4b747ed.zip cpython-18e4db5ebe8396d06478c0a3fdbf3076e4b747ed.tar.gz cpython-18e4db5ebe8396d06478c0a3fdbf3076e4b747ed.tar.bz2 | |
Update a docstring to suggest using importlib.import_module instead of calling __import__ directly.
Diffstat (limited to 'Lib/test/test_support.py')
| -rw-r--r-- | Lib/test/test_support.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index beaa170..f96bad8 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): |
