summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/abc.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-07-20 03:19:18 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-07-20 03:19:18 (GMT)
commit64ef00fa605463e1da84e43ea8a5d722843174b6 (patch)
tree219e0049b500df1051e208ff1ec6c8a19a1d08d4 /Lib/importlib/abc.py
parent4dc3193973101ce278aee58a9ee36cec2451caf4 (diff)
downloadcpython-64ef00fa605463e1da84e43ea8a5d722843174b6.zip
cpython-64ef00fa605463e1da84e43ea8a5d722843174b6.tar.gz
cpython-64ef00fa605463e1da84e43ea8a5d722843174b6.tar.bz2
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.
Diffstat (limited to 'Lib/importlib/abc.py')
-rw-r--r--Lib/importlib/abc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py
index b2bdb02..7b89d0b 100644
--- a/Lib/importlib/abc.py
+++ b/Lib/importlib/abc.py
@@ -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.