Skip to content

Commit 8ba08e3

Browse files
committed
Remove md_none
1 parent 2afc2e1 commit 8ba08e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/importlib/metadata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ def packages_distributions() -> Mapping[str, list[str]]:
11151115
pkg_to_dist = collections.defaultdict(list)
11161116
for dist in distributions():
11171117
for pkg in _top_level_declared(dist) or _top_level_inferred(dist):
1118-
pkg_to_dist[pkg].append(md_none(dist.metadata)['Name'])
1118+
pkg_to_dist[pkg].append(dist.metadata['Name'])
11191119
return dict(pkg_to_dist)
11201120

11211121

0 commit comments

Comments
 (0)