eric6/E5Network/E5Ftp.py

changeset 8218
7c09585bd960
parent 8207
d359172d11be
child 8268
6b8128e0c9d1
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
77 @param proxyUser user name for login to the proxy (string) 77 @param proxyUser user name for login to the proxy (string)
78 @param proxyPassword password for login to the proxy (string) 78 @param proxyPassword password for login to the proxy (string)
79 @param proxyAccount accounting info for the proxy (string) 79 @param proxyAccount accounting info for the proxy (string)
80 @param timeout timeout in seconds for blocking operations (integer) 80 @param timeout timeout in seconds for blocking operations (integer)
81 """ 81 """
82 super(E5Ftp, self).__init__() 82 super().__init__()
83 83
84 self.__timeout = timeout 84 self.__timeout = timeout
85 85
86 self.__proxyType = proxyType 86 self.__proxyType = proxyType
87 self.__proxyHost = proxyHost 87 self.__proxyHost = proxyHost
158 if self.__proxyType != E5FtpProxyType.NoProxy: 158 if self.__proxyType != E5FtpProxyType.NoProxy:
159 if not self.__proxyHost: 159 if not self.__proxyHost:
160 raise E5FtpProxyError( 160 raise E5FtpProxyError(
161 "990 Proxy usage requested, but no proxy host given.") 161 "990 Proxy usage requested, but no proxy host given.")
162 162
163 return super(E5Ftp, self).connect( 163 return super().connect(
164 self.__proxyHost, self.__proxyPort, self.__timeout) 164 self.__proxyHost, self.__proxyPort, self.__timeout)
165 else: 165 else:
166 return super(E5Ftp, self).connect( 166 return super().connect(
167 self.__host, self.__port, self.__timeout) 167 self.__host, self.__port, self.__timeout)
168 168
169 def login(self, user="", password="", acct=""): # secok 169 def login(self, user="", password="", acct=""): # secok
170 """ 170 """
171 Public method to login to the FTP server. 171 Public method to login to the FTP server.

eric ide

mercurial