Update a docstring to suggest using importlib.import_module instead of calling __import__ directly.

This commit is contained in:
Brett Cannon 2010-02-03 22:11:54 +00:00
parent c68e9f0d20
commit 18e4db5ebe
1 changed files with 1 additions and 1 deletions

View File

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