MCPcopy Index your code
hub / github.com/python/cpython / abort

Method abort

Lib/ftplib.py:777–784  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

775 return conn, size
776
777 def abort(self):
778 # overridden as we can't pass MSG_OOB flag to sendall()
779 line = b'ABOR' + B_CRLF
780 self.sock.sendall(line)
781 resp = self.getmultiline()
782 if resp[:3] not in {'426', '225', '226'}:
783 raise error_proto(resp)
784 return resp
785
786 __all__.append('FTP_TLS')
787 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