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

Method login

Lib/ftplib.py:721–724  ·  view source on GitHub ↗
(self, user='', passwd='', acct='', secure=True)

Source from the content-addressed store, hash-verified

719 timeout, source_address, encoding=encoding)
720
721 def login(self, user='', passwd='', acct='', secure=True):
722 if secure and not isinstance(self.sock, ssl.SSLSocket):
723 self.auth()
724 return super().login(user, passwd, acct)
725
726 def auth(self):
727 '''Set up secure control connection by using TLS/SSL.'''

Callers

nothing calls this directly

Calls 3

authMethod · 0.95
superClass · 0.85
loginMethod · 0.45

Tested by

no test coverage detected