diff options
Diffstat (limited to 'Lib/importlib/abc.py')
-rw-r--r-- | Lib/importlib/abc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py index d2f45093a4..dbdd5bf641 100644 --- a/Lib/importlib/abc.py +++ b/Lib/importlib/abc.py @@ -381,8 +381,8 @@ class ResourceReader(metaclass=abc.ABCMeta): @abc.abstractmethod def contents(self): - """Return an iterator of strings over the contents of the package.""" - return iter([]) + """Return an iterable of strings over the contents of the package.""" + return [] _register(ResourceReader, machinery.SourceFileLoader) |