clean up unused debug
This commit is contained in:
parent
8171e67e70
commit
9c62c2725a
1 changed files with 0 additions and 6 deletions
|
@ -49,23 +49,18 @@ class InMemoryFile:
|
|||
self.incomplete_callback = incomplete_callback
|
||||
|
||||
async def length(self) -> int:
|
||||
logger.debug("myfile length")
|
||||
return len(self.data.getbuffer())
|
||||
|
||||
async def seek(self, offset: int, whence: int) -> int:
|
||||
logger.debug(f"myfile seek {offset} {whence}")
|
||||
return self.data.seek(offset, whence)
|
||||
|
||||
async def read(self, length: int) -> bytes:
|
||||
logger.debug(f"myfile read {length}")
|
||||
return self.data.read(length)
|
||||
|
||||
async def write(self, data: bytes) -> int:
|
||||
logger.debug(f"myfile write {len(data)}")
|
||||
return self.data.write(data)
|
||||
|
||||
async def close(self, complete: bool) -> None:
|
||||
logger.debug(f"myfile close {complete}")
|
||||
if complete:
|
||||
await self.complete_callback(self.filename, self.data.getvalue())
|
||||
else:
|
||||
|
@ -79,7 +74,6 @@ class InMemoryFilesystem:
|
|||
self.files = {}
|
||||
|
||||
async def open(self, filename: bytes, mode: FileMode) -> InMemoryFile:
|
||||
logger.debug(f"InMemoryFilesystem open {filename} {mode}")
|
||||
match mode:
|
||||
case FileMode.BINARY_READ:
|
||||
if filename not in self.files:
|
||||
|
|
Loading…
Reference in a new issue