mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Merged revisions 77956-77957 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77956 | brett.cannon | 2010-02-03 14:11:54 -0800 (Wed, 03 Feb 2010) | 1 line Update a docstring to suggest using importlib.import_module instead of calling __import__ directly. ........ r77957 | brett.cannon | 2010-02-03 14:13:44 -0800 (Wed, 03 Feb 2010) | 1 line Fix a typo in a docstring introduced in r77956. ........
This commit is contained in:
parent
63187670ef
commit
ddb5e70e02
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ class CleanImport(object):
|
|||
Use like this:
|
||||
|
||||
with CleanImport("foo"):
|
||||
__import__("foo") # new reference
|
||||
importlib.import_module("foo") # new reference
|
||||
"""
|
||||
|
||||
def __init__(self, *module_names):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue