| 123456789101112131415161718192021 | import pathlibfrom .file_blob import file_blobfrom .exceptions import not_existsfrom .exceptions import not_readableclass file_loader:    def __init__(self, source: pathlib.Path) -> None:        if not source.is_file():            raise not_exists(source)        self.__source = source    def read(self) -> file_blob:        try:            with self.__source.open("rb") as handler:                return file_blob(handler.read())        except Exception as error:            raise not_readable(self.__source, error)            
 |