"""Abstract base class for loaders to provide resource reading support."""
"""Return an opened, file-like object for binary reading.
The 'resource' argument is expected to represent only a file name.
If the resource cannot be found, FileNotFoundError is raised.
"""
# This deliberately raises FileNotFoundError instead of
# NotImplementedError so that if this method is accidentally called,
# it'll still do the right thing.
"""Return the file system path to the specified resource.
The 'resource' argument is expected to represent only a file name.
If the resource does not exist on the file system, raise
FileNotFoundError.
"""
# This deliberately raises FileNotFoundError instead of
# NotImplementedError so that if this method is accidentally called,
# it'll still do the right thing.
"""Return True if the named 'path' is a resource.
Files are resources, directories are not.
"""
"""Return an iterable of entries in `package`."""
"""
An object with a subset of pathlib.Path methods suitable for
traversing directories and opening files.
"""
"""
Yield Traversable objects in self
"""
"""
Read contents of self as bytes
"""
return
"""
Read contents of self as text
"""
return
"""
Return True if self is a directory
"""
"""
Return True if self is a file
"""
"""
Return Traversable child in self
"""
"""
Return Traversable child in self
"""
return
"""
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.
"""
"""
The base name of this object without any parent references.
"""
"""
The required interface for providing traversable
resources.
"""
"""Return a Traversable object for the loaded package."""
return
return
return