Skip to content

Commit

Permalink
pythongh-106531: Remove importlib.resources._legacy
Browse files Browse the repository at this point in the history
Syncs with importlib_resources 6.0.
  • Loading branch information
jaraco committed Jul 7, 2023
1 parent a855458 commit a1bac45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 139 deletions.
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 comments on commit a1bac45

Please sign in to comment.