Skip to content

Commit d91dd25

Browse files
committed
Eagerly consume infos and eggs. Workaround for #293. Still needs a test.
1 parent 6360916 commit d91dd25

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v3.8.1
2+
======
3+
4+
* #293: Workaround for error in distribution search.
5+
16
v3.8.0
27
======
38

importlib_metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def search(self, prepared):
685685
if prepared
686686
else itertools.chain.from_iterable(self.eggs.values())
687687
)
688-
return itertools.chain(infos, eggs)
688+
return list(itertools.chain(infos, eggs))
689689

690690

691691
class Prepared:

0 commit comments

Comments
 (0)