mirror of https://github.com/python/cpython
Use the public API, not a private one.
This commit is contained in:
parent
9e0e1a63c8
commit
a6503606f9
|
@ -12,7 +12,7 @@ def import_(*args, **kwargs):
|
|||
if using___import__:
|
||||
return __import__(*args, **kwargs)
|
||||
else:
|
||||
return importlib._bootstrap.__import__(*args, **kwargs)
|
||||
return importlib.__import__(*args, **kwargs)
|
||||
|
||||
|
||||
importlib_only = unittest.skipIf(using___import__, "importlib-specific test")
|
||||
|
|
Loading…
Reference in New Issue