Kaydet (Commit) 18e4db5e authored tarafından Brett Cannon's avatar Brett Cannon

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

üst c68e9f0d
...@@ -493,7 +493,7 @@ class CleanImport(object): ...@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment