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

Method __write

tools/python-3.11.9-amd64/Lib/tarfile.py:444–451  ·  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

442 self.__write(s)
443
444 def __write(self, s):
445 """Write string s to the stream if a whole new block
446 is ready to be written.
447 """
448 self.buf += s
449 while len(self.buf) > self.bufsize:
450 self.fileobj.write(self.buf[:self.bufsize])
451 self.buf = self.buf[self.bufsize:]
452
453 def close(self):
454 """Close the _Stream object. No operation should be

Callers 2

_init_write_gzMethod · 0.95
writeMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected