Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork48
Closed
Milestone
Description
In GitLab by@jaraco on Feb 29, 2020, 19:13
As is implied by themigration guide, Traversable objects require a.open() method.
The interface needs to be a limited subset of the usualopen() operation, but it's basically this:
def open(self, mode='r', *args, **kwargs): """ mode may be 'r' or 'rb' to open as text or binary. Return a handle suitable for reading (same as pathlib.Path.open). When opening as text, accepts encoding parameters such as those accepted by io.TextIOWrapper. """Note, only withzipp 3.0 (and the Python 2 compatiblezipp 1.2.0) does thezipp.Path object have a compatible interface, soimportlib_resources should depend on these versions.
Metadata
Metadata
Assignees
Labels
No labels