mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Importlib's documentation said that importlib.abc.PyLoader inherited from
importlib.abc.ResourceLoader, when in fact it did not. Fixed the ABC to inherit as documented. This doesn't introduce an backwards-incompatiblity as the code in PyLoader already required the single method ResourceLoader defined as an abstract method.
This commit is contained in:
parent
4dc3193973
commit
64ef00fa60
3 changed files with 66 additions and 15 deletions
|
@ -76,7 +76,7 @@ InspectLoader.register(machinery.BuiltinImporter)
|
|||
InspectLoader.register(machinery.FrozenImporter)
|
||||
|
||||
|
||||
class PyLoader(_bootstrap.PyLoader, InspectLoader):
|
||||
class PyLoader(_bootstrap.PyLoader, ResourceLoader, InspectLoader):
|
||||
|
||||
"""Abstract base class to assist in loading source code by requiring only
|
||||
back-end storage methods to be implemented.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue