clean up unused debug

This commit is contained in:
Jeffrey C. Ollie 2022-07-07 15:28:19 -05:00
parent 8171e67e70
commit 9c62c2725a

View file

@ -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: