Skip to content

Commit fb6984f

Browse files
[3.15] gh-143387: Add news blurb for importlib.metadata highlighting the change. (GH-150169) (#150171)
gh-143387: Add news blurb for importlib.metadata highlighting the change. (GH-150169) (cherry picked from commit cb3b4b9) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
1 parent ad2f0cb commit fb6984f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Doc/whatsnew/3.15.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,19 @@ http.server
12081208
(Contributed by Anton I. Sipos in :gh:`135057`.)
12091209

12101210

1211+
importlib.metadata
1212+
------------------
1213+
1214+
* Previously, when accessing a distribution metadata directory not
1215+
containing a metadata file, ``metadata()`` and ``Distribution.metadata()``
1216+
would return an empty ``PackageMetadata`` object as if the file
1217+
was present but empty. Now, a ``MetadataNotFound`` exception is raised.
1218+
See `importlib_metadata#493 <https://github.com/python/importlib_metadata/issues/493>`_
1219+
for background and rationale and and :gh:`143387` for rationale on the
1220+
compatibility concerns.
1221+
(Contributed by Jason R. Coombs.)
1222+
1223+
12111224
inspect
12121225
-------
12131226

0 commit comments

Comments
 (0)