This commit is contained in:
Barry Warsaw 2012-07-31 16:39:43 -04:00
parent dbdc3db534
commit 38f75cbc00

View file

@ -33,7 +33,7 @@ class Loader(metaclass=abc.ABCMeta):
The fullname is a str.""" The fullname is a str."""
raise NotImplementedError raise NotImplementedError
@abs.abstractmethod @abc.abstractmethod
def module_repr(self, module): def module_repr(self, module):
"""Abstract method which when implemented calculates and returns the """Abstract method which when implemented calculates and returns the
given module's repr.""" given module's repr."""
@ -44,7 +44,7 @@ class Finder(metaclass=abc.ABCMeta):
"""Abstract base class for import finders.""" """Abstract base class for import finders."""
@abs.abstractmethod @abc.abstractmethod
def find_loader(self, fullname): def find_loader(self, fullname):
"""Abstract method which when implemented returns a module loader. """Abstract method which when implemented returns a module loader.
The fullname is a str. Returns a 2-tuple of (Loader, portion) where The fullname is a str. Returns a 2-tuple of (Loader, portion) where