MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _Tellable

Class _Tellable

tools/python-3.11.9-amd64/Lib/zipfile.py:796–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794
795# Provide the tell method for unseekable stream
796class _Tellable:
797 def __init__(self, fp):
798 self.fp = fp
799 self.offset = 0
800
801 def write(self, data):
802 n = self.fp.write(data)
803 self.offset += n
804 return n
805
806 def tell(self):
807 return self.offset
808
809 def flush(self):
810 self.fp.flush()
811
812 def close(self):
813 self.fp.close()
814
815
816class ZipExtFile(io.BufferedIOBase):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected