| D | _legacy.py | 11 Package = Union[types.ModuleType, str] variable 44 def open_binary(package: Package, resource: Resource) -> BinaryIO: argument 46 return (_common.files(package) / normalize_path(resource)).open('rb') 50 def read_binary(package: Package, resource: Resource) -> bytes: argument 52 return (_common.files(package) / normalize_path(resource)).read_bytes() 57 package: Package, argument 63 return (_common.files(package) / normalize_path(resource)).open( 70 package: Package, argument 80 with open_text(package, resource, encoding, errors) as fp: 85 def contents(package: Package) -> Iterable[str]: argument [all …]
|