MCPcopy Create free account
hub / github.com/dateutil/dateutil / _open_text

Function _open_text

src/dateutil/_tzdata_impl.py:19–24  ·  view source on GitHub ↗
(package: str, resource: str)

Source from the content-addressed store, hash-verified

17
18
19def _open_text(package: str, resource: str) -> TextIO:
20 return (
21 importlib.resources.files(package)
22 .joinpath(resource)
23 .open("r", encoding="utf-8")
24 )
25
26
27def _open_binary(package: str, resource: str) -> BinaryIO:

Callers 1

_load_tzdata_keysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected