MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / RWPair

Class RWPair

sshuttle/helpers.py:290–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288
289
290class RWPair:
291 def __init__(self, r, w):
292 self.r = r
293 self.w = w
294 self.read = r.read
295 self.readline = r.readline
296 self.write = w.write
297 self.flush = w.flush
298
299 def close(self):
300 for f in self.r, self.w:
301 try:
302 f.close()
303 except Exception:
304 pass
305
306
307class SocketRWShim:

Callers 1

get_pfileMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected