MCPcopy Index your code
hub / github.com/RustPython/RustPython / __write

Method __write

Lib/tarfile.py:453–460  ·  view source on GitHub ↗

Write string s to the stream if a whole new block is ready to be written.

(self, s)

Source from the content-addressed store, hash-verified

451 self.__write(s)
452
453 def __write(self, s):
454 """Write string s to the stream if a whole new block
455 is ready to be written.
456 """
457 self.buf += s
458 while len(self.buf) > self.bufsize:
459 self.fileobj.write(self.buf[:self.bufsize])
460 self.buf = self.buf[self.bufsize:]
461
462 def close(self):
463 """Close the _Stream object. No operation should be

Callers 2

_init_write_gzMethod · 0.95
writeMethod · 0.95

Calls 2

lenFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected