Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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``.