[PEP 451] Fix a ModuleSpec attribute (parent) that was named inconsistently in different parts.
This commit is contained in:
parent
3cc4e26a24
commit
7dcf9d7527
|
@ -502,7 +502,7 @@ On ModuleSpec On Modules
|
|||
========================== ==============
|
||||
name __name__
|
||||
loader __loader__
|
||||
package __package__
|
||||
parent __package__
|
||||
origin __file__*
|
||||
cached __cached__*,**
|
||||
submodule_search_locations __path__**
|
||||
|
@ -513,7 +513,7 @@ has_location \-
|
|||
| \* Set on the module only if spec.has_location is true.
|
||||
| \*\* Set on the module only if the spec attribute is not None.
|
||||
|
||||
While package and has_location are read-only properties, the remaining
|
||||
While parent and has_location are read-only properties, the remaining
|
||||
attributes can be replaced after the module spec is created and even
|
||||
after import is complete. This allows for unusual cases where directly
|
||||
modifying the spec is the best option. However, typical use should not
|
||||
|
|
Loading…
Reference in New Issue