Method
__init__
(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
Tested by
no test coverage detected