File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 33import sys
44
55from ._compat import metadata
6+ from .trees import as_file
67
78
89__all__ = [
910 'Package' ,
1011 'Resource' ,
1112 'ResourceReader' ,
13+ 'as_file' ,
1214 'contents' ,
1315 'files' ,
1416 'is_resource' ,
Original file line number Diff line number Diff line change @@ -155,8 +155,7 @@ to this temporary file as a :py:class:`pathlib.Path` object. In order to
155155properly clean up this temporary file, what's actually returned is a context
156156manager that you can use in a ``with ``-statement::
157157
158- from importlib_resources import files
159- from importlib_resources.trees import as_file
158+ from importlib_resources import files, as_file
160159
161160 source = files(email.tests.data).joinpath('message.eml')
162161 with as_file(source) as eml:
You can’t perform that action at this time.
0 commit comments