diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2024-08-15 19:32:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-15 19:32:05 (GMT) |
commit | e913d2c87f1ae4e7a4aef5ba78368ef31d060767 (patch) | |
tree | 239207179608edb638b18adb39f524597c4eebf3 /Lib/importlib/resources/_functional.py | |
parent | d7a3df91505faa56c51d169648253bd0d57ddae2 (diff) | |
download | cpython-e913d2c87f1ae4e7a4aef5ba78368ef31d060767.zip cpython-e913d2c87f1ae4e7a4aef5ba78368ef31d060767.tar.gz cpython-e913d2c87f1ae4e7a4aef5ba78368ef31d060767.tar.bz2 |
gh-116608: Apply style and compatibility changes from importlib_metadata. (#123028)
Diffstat (limited to 'Lib/importlib/resources/_functional.py')
-rw-r--r-- | Lib/importlib/resources/_functional.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/importlib/resources/_functional.py b/Lib/importlib/resources/_functional.py index 9e3ea15..f59416f 100644 --- a/Lib/importlib/resources/_functional.py +++ b/Lib/importlib/resources/_functional.py @@ -57,11 +57,7 @@ def contents(anchor, *path_names): DeprecationWarning, stacklevel=1, ) - return ( - resource.name - for resource - in _get_resource(anchor, path_names).iterdir() - ) + return (resource.name for resource in _get_resource(anchor, path_names).iterdir()) def _get_encoding_arg(path_names, encoding): |