From af378646215a22e91055238f465a64cb93f29c48 Mon Sep 17 00:00:00 2001 From: Mike Zimin <122507876+mikeziminio@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:55:59 +0300 Subject: [PATCH] [3.12] gh-113238: add Anchor to importlib.resources (GH-113801) (cherry picked from commit c85c0026a64c2a902138feeb73a9c66af1af31e0) Co-authored-by: Mike Zimin <122507876+mikeziminio@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> --- Lib/importlib/resources/__init__.py | 2 ++ .../next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst | 1 + 2 files changed, 3 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst 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)