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

Function _open_binary

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

Source from the content-addressed store, hash-verified

25
26
27def _open_binary(package: str, resource: str) -> BinaryIO:
28 return importlib.resources.files(package).joinpath(resource).open("rb")
29
30
31def _is_package_directory(package: str, resource: str) -> bool:

Callers 2

_copy_resource_toFunction · 0.90
_load_tzdataFunction · 0.85

Calls

no outgoing calls

Tested by 1

_copy_resource_toFunction · 0.72