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

Method ccc

Lib/ftplib.py:738–744  ·  view source on GitHub ↗

Switch back to a clear-text control connection.

(self)

Source from the content-addressed store, hash-verified

736 return resp
737
738 def ccc(self):
739 '''Switch back to a clear-text control connection.'''
740 if not isinstance(self.sock, ssl.SSLSocket):
741 raise ValueError("not using TLS")
742 resp = self.voidcmd('CCC')
743 self.sock = self.sock.unwrap()
744 return resp
745
746 def prot_p(self):
747 '''Set up secure data connection.'''

Callers 1

test_cccMethod · 0.80

Calls 2

voidcmdMethod · 0.80
unwrapMethod · 0.45

Tested by 1

test_cccMethod · 0.64