Changed __package__ to __spec__ in example for importlib.utils.reolve_name

This commit is contained in:
Fongeme 2021-01-04 21:59:58 +02:00
parent 127dde5916
commit 0fba9cd3d2
1 changed files with 1 additions and 1 deletions

View File

@ -1476,7 +1476,7 @@ an :term:`importer`.
If **name** has no leading dots, then **name** is simply returned. This
allows for usage such as
``importlib.util.resolve_name('sys', __package__)`` without doing a
``importlib.util.resolve_name('sys', __spec__)`` without doing a
check to see if the **package** argument is needed.
:exc:`ImportError` is raised if **name** is a relative module name but