We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e71728 commit cc74d38Copy full SHA for cc74d38
importlib_resources/abc.py
@@ -73,4 +73,4 @@ def is_resource(self, path):
73
return self.files().joinpath(path).isfile()
74
75
def contents(self):
76
- return map(str, self.files().iterdir())
+ return (item.name for item in self.files().iterdir())
0 commit comments