Skip to content

Commit

Permalink
Eagerly consume infos and eggs. Workaround for #293. Still needs a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 27, 2021
1 parent 6360916 commit d91dd25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v3.8.1
======

* #293: Workaround for error in distribution search.

v3.8.0
======

Expand Down
2 changes: 1 addition & 1 deletion importlib_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ def search(self, prepared):
if prepared
else itertools.chain.from_iterable(self.eggs.values())
)
return itertools.chain(infos, eggs)
return list(itertools.chain(infos, eggs))


class Prepared:
Expand Down

0 comments on commit d91dd25

Please sign in to comment.