8000 gh-106531: Remove importlib.resources._legacy by jaraco · Pull Request #106532 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-106531: Remove importlib.resources._legacy #106532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-106531: Remove importlib.resources._legacy
Syncs with importlib_resources 6.0.
  • Loading branch information
jaraco committed Jul 7, 2023
commit a1bac45e15d0fc4482acba9c12f0f15000629284
19 changes: 0 additions & 19 deletions Lib/importlib/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,12 @@
Package,
)

from ._legacy import (
contents,
open_binary,
read_binary,
open_text,
read_text,
is_resource,
path,
Resource,
)

from .abc import ResourceReader


__all__ = [
'Package',
'Resource',
'ResourceReader',
'as_file',
'contents',
'files',
'is_resource',
'open_binary',
'open_text',
'path',
'read_binary',
'read_text',
]
120 changes: 0 additions & 120 deletions Lib/importlib/resources/_legacy.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Removed ``_legacy`` and the names it provided from ``importlib.resources``:
``Resource``, ``contents``, ``is_resource``, ``open_binary``, ``open_text``,
``path``, ``read_binary``, and ``read_text``.
0