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

Method __init__

Lib/ftplib.py:711–719  ·  view source on GitHub ↗
(self, host='', user='', passwd='', acct='',
                     *, context=None, timeout=_GLOBAL_DEFAULT_TIMEOUT,
                     source_address=None, encoding='utf-8')

Source from the content-addressed store, hash-verified

709 '''
710
711 def __init__(self, host='', user='', passwd='', acct='',
712 *, context=None, timeout=_GLOBAL_DEFAULT_TIMEOUT,
713 source_address=None, encoding='utf-8'):
714 if context is None:
715 context = ssl._create_stdlib_context()
716 self.context = context
717 self._prot_p = False
718 super().__init__(host, user, passwd, acct,
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):

Callers

nothing calls this directly

Calls 2

superClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected