MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / fill

Method fill

ssnet.py:226–233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

224 return '' # unexpected error... we'll call it EOF
225
226 def fill(self):
227 if self.buf:
228 return
229 rb = self.uread()
230 if rb:
231 self.buf.append(rb)
232 if rb == '': # empty string means EOF; None means temporarily empty
233 self.noread()
234
235 def copy_to(self, outwrap):
236 if self.buf and self.buf[0]:

Callers

nothing calls this directly

Calls 2

ureadMethod · 0.95
noreadMethod · 0.95

Tested by

no test coverage detected