Update a docstring to suggest using importlib.import_module instead of calling __import__ directly.
This commit is contained in:
parent
c68e9f0d20
commit
18e4db5ebe
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue