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

Method voidresp

Lib/ftplib.py:257–262  ·  view source on GitHub ↗

Expect a response beginning with '2'.

(self)

Source from the content-addressed store, hash-verified

255 raise error_proto(resp)
256
257 def voidresp(self):
258 """Expect a response beginning with '2'."""
259 resp = self.getresp()
260 if resp[:1] != '2':
261 raise error_reply(resp)
262 return resp
263
264 def abort(self):
265 '''Abort a file transfer. Uses out-of-band data.

Callers 8

voidcmdMethod · 0.95
retrbinaryMethod · 0.95
retrlinesMethod · 0.95
storbinaryMethod · 0.95
storlinesMethod · 0.95
ftpcpFunction · 0.80
test_data_connectionMethod · 0.80
endtransferMethod · 0.80

Calls 2

getrespMethod · 0.95
error_replyClass · 0.85

Tested by 1

test_data_connectionMethod · 0.64