MCPcopy Index your code
hub / github.com/python/cpython / flush

Method flush

Lib/test/test_gzip.py:864–866  ·  view source on GitHub ↗
(self, mode=-1)

Source from the content-addressed store, hash-verified

862 def compress(self, data):
863 return b''
864 def flush(self, mode=-1):
865 self.modes.append(mode)
866 return b''
867 b = io.BytesIO()
868 fc = FakeCompressor()
869 with gzip.GzipFile(fileobj=b, mode='w') as f:

Callers 3

test_writeMethod · 0.45
test_flush_modesMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected