brevity
This commit is contained in:
parent
09b7d59b39
commit
bf92eadf3f
2 changed files with 6 additions and 5 deletions
|
@ -27,14 +27,15 @@ async def _get_buffer(
|
|||
"""
|
||||
|
||||
@run_in_executor
|
||||
def _inner(resource: Resource) -> BytesIO:
|
||||
_logger.info(f"updating {resource.urn.filename()!r} ...")
|
||||
def _inner() -> BytesIO:
|
||||
_logger.info(f"updating {remote_path!r} ...")
|
||||
|
||||
resource = webdav_resource(remote_path)
|
||||
buffer = BytesIO()
|
||||
resource.write_to(buffer)
|
||||
return buffer
|
||||
|
||||
resource = webdav_resource(remote_path)
|
||||
return await _inner(resource)
|
||||
return await _inner()
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
|
Loading…
Reference in a new issue