Commits

Brett Cannon committed a7a770b

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

  • Participants
  • Parent commits 4ae8b9c
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/test/test_support.py

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