(
    package: Package,
    resource: Resource,
    encoding: str = 'utf-8',
    errors: str = 'strict',
)
Return the decoded string of the resource.

    The decoding-related arguments have the same semantics as those of
    bytes.decode().
Return the decoded string of the resource.
Return the decoded string of the resource .
def read_text(
    package: Package,
    resource: Resource,
    encoding: str = 'utf-8',
    errors: str = 'strict',
) -> str:
    """Return the decoded string of the resource.

    The decoding-related arguments have the same semantics as those of
    bytes.decode().
    """
    with open_text(package, resource, encoding, errors) as fp:
        return fp.read()
def read_text ( package : Package , resource : Resource , encoding : str = 'utf-8' , errors : str = 'strict' , ) -> str : with open_text ( package , resource , encoding , errors ) as fp : return fp . read ( )