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

Method abort

tools/python-3.11.9-amd64/Lib/ftplib.py:799–806  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

797 return conn, size
798
799 def abort(self):
800 # overridden as we can't pass MSG_OOB flag to sendall()
801 line = b'ABOR' + B_CRLF
802 self.sock.sendall(line)
803 resp = self.getmultiline()
804 if resp[:3] not in {'426', '225', '226'}:
805 raise error_proto(resp)
806 return resp
807
808 __all__.append('FTP_TLS')
809 all_errors = (Error, OSError, EOFError, ssl.SSLError)

Callers

nothing calls this directly

Calls 3

getmultilineMethod · 0.80
error_protoClass · 0.70
sendallMethod · 0.45

Tested by

no test coverage detected