diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-12-30 21:00:48 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-30 21:00:48 -0500 |
| commit | e712a5b277866a71c195f38c1b5d87d9126dba3e (patch) | |
| tree | 0adfeaa93118e057089101c9e07678ca6c6daafd /Lib/importlib/resources.py | |
| parent | 2cf7d02b99ce8cebd26d330aa8aac2ee369d4600 (diff) | |
| download | cpython-git-e712a5b277866a71c195f38c1b5d87d9126dba3e.tar.gz | |
bpo-46118: Move importlib.resources to its own package. (#30176)
* bpo-46118: Move importlib.resources to its own package.
* Expand compatibility shims with documentation and explicit imports.
Diffstat (limited to 'Lib/importlib/resources.py')
| -rw-r--r-- | Lib/importlib/resources.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/Lib/importlib/resources.py b/Lib/importlib/resources.py deleted file mode 100644 index 5b3bc0228d..0000000000 --- a/Lib/importlib/resources.py +++ /dev/null @@ -1,36 +0,0 @@ -"""Read resources contained within a package.""" - -from ._common import ( - as_file, - files, - Package, -) - -from ._legacy import ( - contents, - open_binary, - read_binary, - open_text, - read_text, - is_resource, - path, - Resource, -) - -from importlib.abc import ResourceReader - - -__all__ = [ - 'Package', - 'Resource', - 'ResourceReader', - 'as_file', - 'contents', - 'files', - 'is_resource', - 'open_binary', - 'open_text', - 'path', - 'read_binary', - 'read_text', -] |
