MCPcopy
hub / github.com/amoffat/sh / write_chunk

Method write_chunk

src/sh/__init__.py:3219–3230  ·  view source on GitHub ↗
(self, chunk)

Source from the content-addressed store, hash-verified

3217 os.close(self.stream)
3218
3219 def write_chunk(self, chunk):
3220 # in PY3, the chunk coming in will be bytes, so keep that in mind
3221
3222 if not self.should_quit:
3223 self.should_quit = self.process_chunk(chunk)
3224
3225 if self.save_data:
3226 self.buffer.append(chunk)
3227
3228 if self.pipe_queue:
3229 self.log.debug("putting chunk onto pipe: %r", chunk[:30])
3230 self.pipe_queue().put(chunk)
3231
3232 def read(self):
3233 # if we're PY3, we're reading bytes, otherwise we're reading

Callers 2

closeMethod · 0.95
readMethod · 0.95

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected