MCPcopy Create free account
hub / github.com/paramiko/paramiko / close

Method close

tests/_loop.py:40–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 self._closed = False
39
40 def close(self):
41 self.__unlink()
42 self._closed = True
43 try:
44 self.__lock.acquire()
45 self.__in_buffer = bytes()
46 finally:
47 self.__lock.release()
48
49 def send(self, data):
50 data = asbytes(data)

Callers 15

serverFunction · 0.95
tearDownMethod · 0.45
test_exec_commandMethod · 0.45
test_invoke_shellMethod · 0.45
test_exit_statusMethod · 0.45
test_selectMethod · 0.45
test_renegotiateMethod · 0.45
test_compressionMethod · 0.45
test_x11Method · 0.45
test_port_forwardingMethod · 0.45

Calls 1

__unlinkMethod · 0.95

Tested by 15

tearDownMethod · 0.36
test_exec_commandMethod · 0.36
test_invoke_shellMethod · 0.36
test_exit_statusMethod · 0.36
test_selectMethod · 0.36
test_renegotiateMethod · 0.36
test_compressionMethod · 0.36
test_x11Method · 0.36
test_port_forwardingMethod · 0.36
test_stderr_selectMethod · 0.36