https://github.com/python/cpython/commit/d128edb0eca01e42219f0e216afce992917c29d3 commit: d128edb0eca01e42219f0e216afce992917c29d3 branch: 3.12 author: Hugo van Kemenade <1324225+hug...@users.noreply.github.com> committer: jaraco <jar...@jaraco.com> date: 2025-03-08T11:27:34-05:00 summary:
[3.12] gh-113238: add Anchor to importlib.resources (GH-113801) (#130499) (cherry picked from commit c85c0026a64c2a902138feeb73a9c66af1af31e0) Co-authored-by: Mike Zimin <122507876+mikezimi...@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> files: A Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst M Lib/importlib/resources/__init__.py diff --git a/Lib/importlib/resources/__init__.py b/Lib/importlib/resources/__init__.py index 34e3a9950cc557..a7a9ccb368f478 100644 --- a/Lib/importlib/resources/__init__.py +++ b/Lib/importlib/resources/__init__.py @@ -4,6 +4,7 @@ as_file, files, Package, + Anchor, ) from ._legacy import ( @@ -22,6 +23,7 @@ __all__ = [ 'Package', + 'Anchor', 'Resource', 'ResourceReader', 'as_file', diff --git a/Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst b/Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst new file mode 100644 index 00000000000000..51b4d144a94e6d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst @@ -0,0 +1 @@ +Add ``Anchor`` to ``importlib.resources`` (in order for the code to comply with the documentation) _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com