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