From f1d7b11db905db5b40e2d97fa21af06871cf89ff Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 31 May 2013 18:39:07 -0400 Subject: [PATCH] Docstring cleanup --- Lib/importlib/abc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py index b45e7d65722..897f3435690 100644 --- a/Lib/importlib/abc.py +++ b/Lib/importlib/abc.py @@ -71,7 +71,7 @@ class PathEntryFinder(Finder): a possible part of a namespace. The fullname is a str. Returns a 2-tuple of (Loader, portion) where portion is a sequence of file system locations contributing to part of - a namespace package. The sequence may be empty and the loader may be + a namespace package. The sequence may be empty and the loader may be None. """ return None, [] @@ -108,7 +108,8 @@ class Loader(metaclass=abc.ABCMeta): def module_repr(self, module): """Return a module's repr. - Used by the module type when implemented without raising an exception. + Used by the module type when the method does not raise + NotImplementedError. """ raise NotImplementedError