[Python-checkins] r77956 - python/trunk/Lib/test/test_support.py
brett.cannon
python-checkins at python.org
Wed Feb 3 23:11:54 CET 2010
Author: brett.cannon
Date: Wed Feb 3 23:11:54 2010
New Revision: 77956
Log:
Update a docstring to suggest using importlib.import_module instead of calling __import__ directly.
Modified:
python/trunk/Lib/test/test_support.py
Modified: python/trunk/Lib/test/test_support.py
==============================================================================
--- python/trunk/Lib/test/test_support.py (original)
+++ python/trunk/Lib/test/test_support.py Wed Feb 3 23:11:54 2010
@@ -493,7 +493,7 @@
Use like this:
with CleanImport("foo"):
- __import__("foo") # new reference
+ importlib.import_modulefoo") # new reference
"""
def __init__(self, *module_names):
More information about the Python-checkins
mailing list