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 f452ac5 commit 23ff3cbCopy full SHA for 23ff3cb
importlib_metadata/__init__.py
@@ -199,7 +199,7 @@ def from_name(cls, name):
199
"""
200
for resolver in cls._discover_resolvers():
201
dists = resolver(DistributionFinder.Context(name=name))
202
- dist = next(dists, None)
+ dist = next(iter(dists), None)
203
if dist is not None:
204
return dist
205
else:
importlib_metadata/docs/changelog.rst
@@ -13,6 +13,8 @@ v1.6.1
13
* Ensure inputs to FastPath are Unicode. Closes #121.
14
* Tests now rely on ``importlib.resources.files`` (and
15
backport) instead of the older ``path`` function.
16
+* Support any iterable from ``find_distributions``.
17
+ Closes #122.
18
19
v1.6.0
20
======
0 commit comments