MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __init__

Method __init__

tools/python-3.11.9-amd64/Lib/urllib/request.py:2402–2416  ·  view source on GitHub ↗
(self, user, passwd, host, port, dirs, timeout=None,
                 persistent=True)

Source from the content-addressed store, hash-verified

2400 """Class used by open_ftp() for cache of open FTP connections."""
2401
2402 def __init__(self, user, passwd, host, port, dirs, timeout=None,
2403 persistent=True):
2404 self.user = user
2405 self.passwd = passwd
2406 self.host = host
2407 self.port = port
2408 self.dirs = dirs
2409 self.timeout = timeout
2410 self.refcount = 0
2411 self.keepalive = persistent
2412 try:
2413 self.init()
2414 except:
2415 self.close()
2416 raise
2417
2418 def init(self):
2419 import ftplib

Callers

nothing calls this directly

Calls 2

initMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected