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

Method init

Lib/urllib/request.py:1795–1802  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1793 raise
1794
1795 def init(self):
1796 import ftplib
1797 self.busy = 0
1798 self.ftp = ftplib.FTP()
1799 self.ftp.connect(self.host, self.port, self.timeout)
1800 self.ftp.login(self.user, self.passwd)
1801 _target = '/'.join(self.dirs)
1802 self.ftp.cwd(_target)
1803
1804 def retrfile(self, file, type):
1805 import ftplib

Callers 2

__init__Method · 0.95
retrfileMethod · 0.95

Calls 4

connectMethod · 0.45
loginMethod · 0.45
joinMethod · 0.45
cwdMethod · 0.45

Tested by

no test coverage detected