diff -r 7f643d41464e -r f904d0eef264 eric6/E5Network/E5Ftp.py --- a/eric6/E5Network/E5Ftp.py Wed Jun 17 17:12:21 2020 +0200 +++ b/eric6/E5Network/E5Ftp.py Wed Jun 17 20:18:54 2020 +0200 @@ -9,7 +9,7 @@ """ -import ftplib +import ftplib # secok from socket import _GLOBAL_DEFAULT_TIMEOUT @@ -61,7 +61,7 @@ Class implementing an extension to the Python FTP class to support FTP proxies. """ - def __init__(self, host="", user="", password="", acct="", + def __init__(self, host="", user="", password="", acct="", # secok proxyType=E5FtpProxyType.NoProxy, proxyHost="", proxyPort=ftplib.FTP_PORT, proxyUser="", proxyPassword="", proxyAccount="", timeout=_GLOBAL_DEFAULT_TIMEOUT): @@ -167,7 +167,7 @@ return super(E5Ftp, self).connect( self.__host, self.__port, self.__timeout) - def login(self, user="", password="", acct=""): + def login(self, user="", password="", acct=""): # secok """ Public method to login to the FTP server. @@ -257,7 +257,7 @@ user = "anonymous" if not password: # make sure it is a string - password = "" + password = "" # secok if not acct: # make sure it is a string acct = "" @@ -326,7 +326,7 @@ if resp[0] == "3": resp = self.sendcmd("ACCT " + acct) if resp[0] != "2": - raise ftplib.error_reply(resp) + raise ftplib.error_reply(resp) # secok if self.__proxyType == E5FtpProxyType.AuthResp: # authorize to the FTP proxy