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

Method close

tools/python-3.11.9-amd64/Lib/ftplib.py:663–674  ·  view source on GitHub ↗

Close the connection without assuming anything about it.

(self)

Source from the content-addressed store, hash-verified

661 return resp
662
663 def close(self):
664 '''Close the connection without assuming anything about it.'''
665 try:
666 file = self.file
667 self.file = None
668 if file is not None:
669 file.close()
670 finally:
671 sock = self.sock
672 self.sock = None
673 if sock is not None:
674 sock.close()
675
676try:
677 import ssl

Callers 3

__exit__Method · 0.95
quitMethod · 0.95
ntransfercmdMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected