From 467df4e17dc719afa1108be2f6a778286f967de1 Mon Sep 17 00:00:00 2001 From: aldwinaldwin Date: Wed, 3 Jul 2019 11:10:23 +0800 Subject: [PATCH 1/2] bpo-37459: importlib docs improperly reference get_resource_loader() --- Doc/library/importlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 23831c75842f1f..6aa88d9911589a 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -500,7 +500,7 @@ ABC hierarchy:: packages or a module). Loaders that wish to support resource reading are expected to - provide a method called ``get_resource_loader(fullname)`` which + provide a method called ``get_resource_reader()`` which returns an object implementing this ABC's interface. If the module specified by fullname is not a package, this method should return :const:`None`. An object compatible with this ABC should only be From 4c9996424da72d2b2a7bb8f979ff86e52a7a8dbf Mon Sep 17 00:00:00 2001 From: aldwinaldwin Date: Thu, 4 Jul 2019 08:49:51 +0800 Subject: [PATCH 2/2] bpo-37459: restore fullname argument --- Doc/library/importlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 6aa88d9911589a..df184b33d0e732 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -500,7 +500,7 @@ ABC hierarchy:: packages or a module). Loaders that wish to support resource reading are expected to - provide a method called ``get_resource_reader()`` which + provide a method called ``get_resource_reader(fullname)`` which returns an object implementing this ABC's interface. If the module specified by fullname is not a package, this method should return :const:`None`. An object compatible with this ABC should only be