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

Method __init__

Lib/urllib/request.py:1779–1793  ·  view source on GitHub ↗
(self, user, passwd, host, port, dirs, timeout=None,
                 persistent=True)

Source from the content-addressed store, hash-verified

1777 """Class used by open_ftp() for cache of open FTP connections."""
1778
1779 def __init__(self, user, passwd, host, port, dirs, timeout=None,
1780 persistent=True):
1781 self.user = user
1782 self.passwd = passwd
1783 self.host = host
1784 self.port = port
1785 self.dirs = dirs
1786 self.timeout = timeout
1787 self.refcount = 0
1788 self.keepalive = persistent
1789 try:
1790 self.init()
1791 except:
1792 self.close()
1793 raise
1794
1795 def init(self):
1796 import ftplib

Callers

nothing calls this directly

Calls 2

initMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected